Skip to content

Commit 0cdd7cf

Browse files
authored
v2.5.21
1 parent 36bcaa2 commit 0cdd7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: komga_cover_extractor.py

+2-2
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, 20)
49+
script_version = (2, 5, 21)
5050
script_version_text = "v{}.{}.{}".format(*script_version)
5151

5252
# Paths = existing library
@@ -2556,7 +2556,7 @@ def move_images(
25562556
# Checks if the file string contains a chapter/volume keyword
25572557
def contains_keyword(file_string, chapter=False):
25582558
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}))",
25602560
file_string,
25612561
re.IGNORECASE,
25622562
)

0 commit comments

Comments
 (0)