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

Fix/downloader #622

Merged
merged 14 commits into from
Jul 30, 2023
Merged

Fix/downloader #622

merged 14 commits into from
Jul 30, 2023

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Jul 29, 2023

No description provided.

schroda added 3 commits July 29, 2023 13:52
Unclear why it was converted to Long since it just got converted back to String anyway when it was used in the Downloader
The downloader just changed the state of all downloads, ignoring if they are from the source the Downloader is for or not
@schroda schroda marked this pull request as ready for review July 29, 2023 22:14
In case nothing was done there is nothing to notify about
@schroda schroda force-pushed the fix/downloader branch 3 times, most recently from 7cdc07e to 96f88eb Compare July 29, 2023 23:03
schroda added 5 commits July 30, 2023 01:04
In case there were failed chapter downloads in the queue the DownloadManager still created a Downloader and started it.
This Downloader would than immediately call "onComplete", since there is no available download, which then would refresh the Downloaders again which created an infinite loop until the failed download got removed from the queue
In case a failed downloaded that was still in the queue was tried to get added to the queue again, nothing happened.
Instead of doing nothing, the download should get retried.
Thus, it also provides the logic to easily retry a failed download by just "adding" the chapter to the queue again.
Currently, to retry a failed download, the download has to be removed from the queue and then get re-added.
@Syer10 Syer10 merged commit 251141a into Suwayomi:master Jul 30, 2023
@schroda schroda deleted the fix/downloader branch July 30, 2023 08:52
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.

2 participants