File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 46
46
import settings as settings_file
47
47
48
48
# Version of the script
49
- script_version = (2 , 5 , 25 )
49
+ script_version = (2 , 5 , 26 )
50
50
script_version_text = "v{}.{}.{}" .format (* script_version )
51
51
52
52
# Paths = existing library
@@ -3454,6 +3454,7 @@ def upgrade_to_volume_class(
3454
3454
3455
3455
if (
3456
3456
not test_mode
3457
+ and file_obj .extension in manga_extensions
3457
3458
and file_obj .file_type != "chapter"
3458
3459
and not file_obj .volume_number
3459
3460
and check_for_exception_keywords (file_obj .name , exception_keywords )
@@ -5205,10 +5206,15 @@ def is_premium_volume(file):
5205
5206
bonus_content_found = False
5206
5207
try :
5207
5208
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
+ )
5212
5218
):
5213
5219
bonus_content_found = True
5214
5220
You can’t perform that action at this time.
0 commit comments