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 resuming of failed downloads + prettier terminal output #2

Conversation

Cleanup-Crew-From-Discord

I had my internet drop out a few times while downloading some manga, but once I was finished I realized that some pages had failed to download. Looking into the code, I noticed that the program only checked for the presence of the chapter directory to determine if it should skip, not the actual contents. If it dies in the middle of a chapter, it cannot go back for the remaining pages. This small rewrite checks each page's presence individually to ensure that everything has been downloaded. While I was changing things around, I also added carriage return to the printout of the downloads, so the output of the download itself goes from a wall of text to a single line that updates with each new page.

download logic would cause an incomplete chapter to be skipped over when re-running after a crash. Scanning for the presence of each page fixes this, and I decided to neaten the output using carriage return to get rid of the block of text while I was at it.
download logic would cause an incomplete chapter to be skipped over when re-running after a crash. Scanning for the presence of each page fixes this, and I decided to neaten the output using carriage return to get rid of the block of text while I was at it.

also I managed to mess up the style formatting in one place, so I'll fix it and just re-use the old commit message to hide the fact that I somehow misplaced an enter keypress :)
@AntonisTorb
Copy link
Owner

Hey there, I completely missed this for some reason, GitHub notifications are not very reliable it seems. I ended up merging a newer PR with similar changes, but I will be adding you as contributor. Also some optimization coming up if you're still using this. Cheers!

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