File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
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 , 20 )
49
+ script_version = (2 , 5 , 21 )
50
50
script_version_text = "v{}.{}.{}" .format (* script_version )
51
51
52
52
# Paths = existing library
@@ -2556,7 +2556,7 @@ def move_images(
2556
2556
# Checks if the file string contains a chapter/volume keyword
2557
2557
def contains_keyword (file_string , chapter = False ):
2558
2558
return re .search (
2559
- rf"(\b({ chapter_regex_keywords if chapter else volume_regex_keywords } )([-_.]|)(([0-9]+)((([-_.]|)([0-9]+))+|))(\s |{ file_extensions_regex } ))" ,
2559
+ rf"(\b({ chapter_regex_keywords if chapter else volume_regex_keywords } )([-_.]|)(([0-9]+)((([-_.]|)([0-9]+))+|))((x|#)(\d+)([-_.]\d+)*)*(\s|- |{ file_extensions_regex } ))" ,
2560
2560
file_string ,
2561
2561
re .IGNORECASE ,
2562
2562
)
You can’t perform that action at this time.
0 commit comments