-
Notifications
You must be signed in to change notification settings - Fork 124
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
improve #342 #343
improve #342 #343
Conversation
nhentai/doujinshi.py
Outdated
|
||
base_path = os.path.join(self.downloader.path, self.filename) | ||
if (os.path.exists(base_path + '.pdf') or os.path.exists(base_path + '.cbz')) and skip_exists: | ||
logger.info(f'Skip download doujinshi because a PDF/CBZ file exists of doujinshi {self.name}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, this code will never be reached, will be removed in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to reach this code with the following commands:
nhentai --id 530833 --download --format '%t [%i]' --threads=4 --pdf --meta --output="test-out"
nhentai --id 530833 --download --format '%t [%i]' --threads=4 --cbz --meta --output="test-out"
@normalizedwater546 Does the current program logic meet your needs? |
I think that this is unintuitive. This is how I think expected actions to be.
|
I actually don't need to create both |
Thanks for the improvements! Is the change to auto-generate HTML file intentional? Should I be adding |
Yes, the html file is auto-generate, you can add |
--regenerate-cbz
to--regenerate
, to indicate program regenerate pdf or cbz file--cbz --regenerate
(under now program logic)