aniyomiorg / aniyomi

An app for manga and anime
https://aniyomi.org
Apache License 2.0
4.51k stars 279 forks source link

A better downloader #1610

Open Sadwhy opened 2 weeks ago

Sadwhy commented 2 weeks ago

Describe your suggested feature

The current ffmpeg downloader that the app uses can't handle any kinds of exceptions. If you disconnect your internet for a second it will delete all the progress and will not try to recover and start downloading from where it stopped. You also can't pause it yada yada. Y'all made this app y'all probably know how it works.

Ffmpeg isn't really a proper downloader so use another kind of library that can handle exceptions. My only requirements are multi-threaded, sequential and parallel downloads, the ability to control how many threads to use and if you want it to be sequential or parallel. Pausing, resuming, automatically pausing if no internet it detected and check for internet every 5 seconds to resume, estimated time and download speed output.

It's a lot to ask but the downloader in the app is really barebones so this much is needed.

Other details

I have found this cool library. It's simple but looks helpful https://github.com/khushpanchal/Ketch

Or just use aria2

Acknowledgements

kaishshaikh376 commented 2 weeks ago

This might be very helpful ngl

fakebhai commented 2 weeks ago

aria2 should be better, library you shared doesn't seem to support pause you mentioned (but is planned according to latest issue)

mayurjansari commented 5 days ago

lux alternative