From 62b8cf5739f3c58b0caf1fb45ab5dbe168192adf Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Tue, 4 Nov 2025 00:00:46 +0100 Subject: [PATCH] simplify suffix check --- cbz/comic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbz/comic.py b/cbz/comic.py index c9f1de6..ae414ef 100644 --- a/cbz/comic.py +++ b/cbz/comic.py @@ -176,7 +176,7 @@ class ComicInfo(ComicModel): # Some archives may contain folders or hidden files (e.g., ".extra/" or "__MACOSX/.DS_Store") # that could corrupt the suffix detection and cause invalid image handling. - if not suffix or suffix not in IMAGE_FORMAT: + if suffix not in IMAGE_FORMAT: logging.warning(f'Skipping unsupported or invalid file: {name!r} (suffix={suffix!r})') continue