aniyomiorg / aniyomi

An app for manga and anime

Home Page:https://aniyomi.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A better downloader

Sadwhy opened this issue · comments

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

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • If this is an issue with an official extension, I should be opening an issue in the extensions repository.
  • I have updated the app to version 0.15.3.0.
  • I will fill out all of the requested information in this form.

This might be very helpful ngl

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

lux alternative

Aside from m3u8 streams the app shouldn't use ffmpeg for downloading. The regular downloader should, with some stability problems, be able to do a lot of what you requested. The library you provided, while interesting doesn't seam to support streams downloads which,I believe, are what you are referring to