From a2d5886f55c809108b1f308167de4640cda3c776 Mon Sep 17 00:00:00 2001 From: HSIEH TSUNGYU Date: Sun, 3 Dec 2023 21:00:58 +0800 Subject: [PATCH] Fix re-encoding not ugoira zip files --- PixivImageHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PixivImageHandler.py b/PixivImageHandler.py index 1340cdb7..e1a09466 100644 --- a/PixivImageHandler.py +++ b/PixivImageHandler.py @@ -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)