Skip to content

Commit ce27d3b

Browse files
authored
v2.5.26
1 parent 3fecc6d commit ce27d3b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Diff for: komga_cover_extractor.py

+11-5
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import settings as settings_file
4747

4848
# Version of the script
49-
script_version = (2, 5, 25)
49+
script_version = (2, 5, 26)
5050
script_version_text = "v{}.{}.{}".format(*script_version)
5151

5252
# Paths = existing library
@@ -3454,6 +3454,7 @@ def upgrade_to_volume_class(
34543454

34553455
if (
34563456
not test_mode
3457+
and file_obj.extension in manga_extensions
34573458
and file_obj.file_type != "chapter"
34583459
and not file_obj.volume_number
34593460
and check_for_exception_keywords(file_obj.name, exception_keywords)
@@ -5205,10 +5206,15 @@ def is_premium_volume(file):
52055206
bonus_content_found = False
52065207
try:
52075208
with zipfile.ZipFile(file, "r") as zf:
5208-
if "bonus" in str(zf.namelist()).lower() and re.search(
5209-
r"((bonus)_?([0-9]+)?\.xhtml)",
5210-
str(zf.namelist()).lower(),
5211-
re.IGNORECASE,
5209+
lower_list = str(zf.namelist()).lower()
5210+
if (
5211+
"bonus" in lower_list
5212+
and "/signup" in lower_list
5213+
and re.search(
5214+
r"((bonus)_?([0-9]+)?\.xhtml)",
5215+
lower_list,
5216+
re.IGNORECASE,
5217+
)
52125218
):
52135219
bonus_content_found = True
52145220

0 commit comments

Comments
 (0)