Normalize suffix check to lowercase for image formats

All entries in IMAGE_FORMATS are lowercase, this incorrectly fails on extensions like "JPG"
This commit is contained in:
Chase Roohms
2026-04-05 22:51:26 -05:00
committed by GitHub
parent caead0a957
commit 4d4d367791
+1 -1
View File
@@ -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