Skip to content

Commit

Permalink
v2.5.21
Browse files Browse the repository at this point in the history
  • Loading branch information
zachstultz authored Sep 24, 2024
1 parent 36bcaa2 commit 0cdd7cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions komga_cover_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import settings as settings_file

# Version of the script
script_version = (2, 5, 20)
script_version = (2, 5, 21)
script_version_text = "v{}.{}.{}".format(*script_version)

# Paths = existing library
Expand Down Expand Up @@ -2556,7 +2556,7 @@ def move_images(
# Checks if the file string contains a chapter/volume keyword
def contains_keyword(file_string, chapter=False):
return re.search(
rf"(\b({chapter_regex_keywords if chapter else volume_regex_keywords})([-_.]|)(([0-9]+)((([-_.]|)([0-9]+))+|))(\s|{file_extensions_regex}))",
rf"(\b({chapter_regex_keywords if chapter else volume_regex_keywords})([-_.]|)(([0-9]+)((([-_.]|)([0-9]+))+|))((x|#)(\d+)([-_.]\d+)*)*(\s|-|{file_extensions_regex}))",
file_string,
re.IGNORECASE,
)
Expand Down

0 comments on commit 0cdd7cf

Please sign in to comment.