From 4d4d367791ad1f573a53eeceec2c842627fc570f Mon Sep 17 00:00:00 2001 From: Chase Roohms Date: Sun, 5 Apr 2026 22:51:26 -0500 Subject: [PATCH] Normalize suffix check to lowercase for image formats All entries in IMAGE_FORMATS are lowercase, this incorrectly fails on extensions like "JPG" --- cbz/comic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbz/comic.py b/cbz/comic.py index af9b116..21bed52 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 suffix not in IMAGE_FORMAT: + if suffix.lower() not in IMAGE_FORMAT: logging.warning(f'Skipping unsupported or invalid file: {name!r} (suffix={suffix!r})') continue