-
Notifications
You must be signed in to change notification settings - Fork 251
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
[Feature] Overwrite ugoira #1112
Comments
I leave the issue open for some time if you have possible improvements to propose |
I wouldn't mind a |
If the feature to re-encode en-mass ugoira is made, is it really useful to keep the option describe in the issue (the overwriteUgoira) ? Cause i feel like it's redondante and not really relevant if a re-encode option is available. |
* Develops the issue #1112 Create an option overwriteUgoira in config.ini that behave like the overwrite option but is targeted toward ugoira. Option created to overcome the bug raised by the issue #1109 Prone to improvement * New export by post_id feature Add feature in menu to export all Pixiv, Fanbox and Sketch post ever download in a txt file Feature following possible improvement of issue #1112 Add feature in command line to export all Pixiv, Fanbox and Sketch post ever download in a txt file Add info in readme * Add feature asked by @cglmrfreeman in issue #1112 Overwrite all ugoira, gif, webp, webm, apng if the corresponding option are selected in config.ini Re-encode based on the zip folder Add feature to export whole database in a single command Can export Fanbox, Skecth post_id and Pixiv image_id in a file txt
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. |
The code that goes through files is actually pretty synthetic and quite good. I probably will improve the actual one with it cause rn, it can take a hell lot of time if you have a lot of zip files. |
@PatrickL546 I didn't find it necessary to keep this option since all new ugoira downloaded are encoded by ffmepg without errors and there is now an option (u) to re-encode old ugoira based on the zip (because the zip always contains all the images, it's only the files like gif or webp that can be wrong). Re-downloading ugoira with the |
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. |
Prerequisites
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 theconfig.ini
file only this one is targeted at ugoira.If the option
overwriteUgoira
is True in theconfig.ini
file, it overwrites old ugoira that are trying to be download and present in the databasedb.sqlte
(basically ugoira already download).However, it doesn't overwrite them is the option
checkLastModified
orskipUnknownSize
is set to True (same behaviour as theoverwrite
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
The text was updated successfully, but these errors were encountered: