[Feature] Overwrite ugoira
See original GitHub issuePrerequisites
- Did you read FAQ section in readme.md?
- Did you test with the latest releases or commit ?
- Did you search for existing issues in Issues?
Description
New feature proposed by @cglmrfreeman Add a reprocess function to scan all the ugoira manga types and overwrite the old/bad files.
Actual behavior
This new feature work pretty much like the overwrite
one present in the config.ini
file only this one is targeted at ugoira.
If the option overwriteUgoira
is True in the config.ini
file, it overwrites old ugoira that are trying to be download and present in the database db.sqlte
(basically ugoira already download).
However, it doesn’t overwrite them is the option checkLastModified
or skipUnknownSize
is set to True (same behaviour as the overwrite
option).
It’s a more specific approach of the overwrite
option aiming to replace more efficiently ugoira that might be corrupted as noticed in the issue #1109.
Disclaimer
It doesn’t scan ALL the ugoira of the database, but when an ugoira already download is trying to be re-download it can overwrite it.
Improvement
To archive the exact behaviour as stated in the description, a way to do it would be to be able to export the whole database as a txt file and re-download it using the option 4. Download from list
of the main menu.
Versions
PixivDownloader2 version 20220311-beta3
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:10 (10 by maintainers)
Sorry to reopen the issue, I just found out that there is a problem with the function i made. The gif is not reprocessed if the artwork doesn’t exist on pixiv anymore. It’s mainly due to the fact that i choose to select “zip” as base of the reprocessing where using an “ugoira” would have been more logical. Working on it …
Nice! I had to quickly bash some code to re-encode my ugoira when the new settings were added. Saved me like 200gb’s. Now other people don’t have to go through what I did.