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

Always return "ArchiveProvider" in case "downloadAsCbz" is enabled #671

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Aug 28, 2023

Due to reusing the "FolderProvider" to download a chapter as a cbz file, a normal chapter download folder was created.
In case the download was aborted before the cbz file got created and the folder deleted, the next time the chapter got downloaded, the wrong "FileProvider" was selected, causing the chapter not to get downloaded as a cbz file.

fixes #669

@Syer10
Copy link
Collaborator

Syer10 commented Aug 28, 2023

I'm not too sure about this, I would like to keep support for old folder downloads, and only use cbz when creating new downloads and using cbz archives. If this is merged we wouldn't be able to use old folder downloads, and people would have to re-download everything. Is it possible to download to a temporary folder instead and move the folder/compress it when its finished?

Due to reusing the "FolderProvider" to download a chapter as a cbz file, a normal chapter download folder was created.
In case the download was aborted before the cbz file got created and the folder deleted, the next time the chapter got downloaded, the wrong "FileProvider" was selected, causing the chapter not to get downloaded as a cbz file.
@schroda schroda force-pushed the fix/chapter_download_helper_selecting_incorrect_file_provider branch from 868fc24 to 3868d41 Compare August 28, 2023 23:21
@schroda
Copy link
Collaborator Author

schroda commented Aug 28, 2023

makes sense, did not think about that use case

the chapter now gets downloaded in a temp folder and depending on the file provider it gets either saved as a normal folder or cbz file in the actual download location

@Syer10 Syer10 merged commit 1c9a139 into Suwayomi:master Aug 28, 2023
2 checks passed
@schroda schroda deleted the fix/chapter_download_helper_selecting_incorrect_file_provider branch August 28, 2023 23:42
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.

[Bug] First chapter not converted to CBZ format.
2 participants