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

Avoid downloading already existing chapters #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amananas
Copy link

Some chapters may have been previously downloaded, or a previous download session may have been interrupted. In any case, the user would rather not download again previously pulled chapters, and only download missing chapters.

The download folder is now scanned for chapters that would be created, and detected chapters are skipped.
The detection is based on file name, and the chapter number.

A new run flag is introduced to force download anyways.

Note: bundle download remains unchanged.

@amananas amananas force-pushed the check_already_downloaded branch 3 times, most recently from e89db64 to d1dc366 Compare December 15, 2024 21:37
Some chapters may have been previously downloaded, or a previous
download session may have been interrupted. In any case, the user
would rather not download again previously pulled chapters, and only
download missing chapters.

The download folder is now scanned for chapters that would be created,
and detected chapters are skipped.
The detection is based on file name, and the chapter number.

A new run flag is introduced to force download anyways.

Note: bundle download remains unchanged.
@amananas amananas force-pushed the check_already_downloaded branch from d1dc366 to 9091753 Compare December 15, 2024 21:43
@elboletaire
Copy link
Owner

Good idea, but does not seem to be working for me 😕

I've tried with a random manga from mangadex, here's the command I've tried:

go run . --language en https://mangadex.org/title/633d470a-4146-4dd3-b841-93dd648c23a5/the-academy-s-genius-swordsman 1-5

Haven't had the time to dig into it and see why it's failing, what I've seen looks good.

Also, remember to run go-fmt to unify the coding style please :)

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