Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloader Rewrite #437

Merged
merged 6 commits into from
Nov 8, 2022
Merged

Downloader Rewrite #437

merged 6 commits into from
Nov 8, 2022

Conversation

Syer10
Copy link
Collaborator

@Syer10 Syer10 commented Nov 6, 2022

  • Rewrite downloader to use coroutines instead of a thread
  • Remove unused Page functions
  • Add page progress
  • Add ProgressResponseBody
  • Add support for canceling a download in the middle of downloading
  • Fix clear download queue
  • Reorder downloads
  • Buffer the notify clients queue
  • Download in parallel by source

closes #262

- Rewrite downloader to use coroutines instead of a thread
- Remove unused Page functions
- Add page progress
- Add ProgressResponseBody
- Add support for canceling a download in the middle of downloading
- Fix clear download queue
@AriaMoradi
Copy link
Member

AriaMoradi commented Nov 6, 2022

could we handle calling notifyAllClients() better? step() might hang or l if network is too slow?

@AriaMoradi
Copy link
Member

AriaMoradi commented Nov 6, 2022

We are missing the download queue re-order feature

And parallel page downloads

@Syer10
Copy link
Collaborator Author

Syer10 commented Nov 6, 2022

Hmm I wasn't looking at that issue when I was working on this, Ill keep that in mind for later, I am working on a few things for JUI currently.

- notifyAllClients now launches in another thread and only sends new data every second
- Better handling of download queue checker in step()
- Minor improvements and fixes
@Syer10
Copy link
Collaborator Author

Syer10 commented Nov 7, 2022

Should have everything now 👍

@AriaMoradi AriaMoradi merged commit 2195c3d into Suwayomi:master Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite Download Queue
2 participants