[comick] fix exception when filtering by 'group' (#8045)

This commit is contained in:
Mike Fährmann
2025-08-15 09:17:45 +02:00
parent dd30d64340
commit 41391fc1c8
2 changed files with 9 additions and 1 deletions

View File

@@ -207,7 +207,7 @@ class ComickMangaExtractor(ComickBase, MangaExtractor):
yield from data["chapters"]
else:
for ch in data["chapters"]:
if group in ch["group_name"]:
if (groups := ch["group_name"]) and group in groups:
yield ch
if data["total"] <= limit * page:

View File

@@ -234,4 +234,12 @@ __tests__ = (
"lang" : "es-419",
},
{
"#url" : "https://comick.io/comic/fate-type-redline?lang=en&group=BananaShiki",
"#comment" : "'group_name' is None for some chapters (#8045)",
"#class" : comick.ComickMangaExtractor,
"#pattern" : comick.ComickChapterExtractor.pattern,
"#count" : range(50, 100),
},
)