Skip to content

Commit

Permalink
Fix re-encoding not ugoira zip files (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
HTYISABUG committed Dec 7, 2023
1 parent b7162b8 commit 6ae7ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PixivImageHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def process_ugoira_local(caller, config):
zip_name = os.path.splitext(os.path.basename(zip))[0]
zip_dir = os.path.dirname(zip)
image_id = zip_name.partition("_")[0]
if image_id not in list_done:
if 'ugoira' in zip_name and image_id not in list_done:
counter += 1
PixivHelper.print_and_log(None, f"# Ugoira {counter}")
PixivHelper.print_and_log("info", "Deleting old animated files ...", newline=False)
Expand Down

0 comments on commit 6ae7ca4

Please sign in to comment.