Skip to content

Commit c9d4414

Browse files
authored
v2.5.29
1 parent 4b62ba6 commit c9d4414

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: komga_cover_extractor.py

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

5252
# Paths = existing library
@@ -323,6 +323,7 @@ def __str__(self):
323323
r"Tail -",
324324
r"꞉",
325325
r":",
326+
r"\d\."
326327
]
327328

328329
subtitle_exclusion_keywords = [r"-(\s)", r"-", r"-\s[A-Za-z]+\s"]
@@ -11011,7 +11012,7 @@ def has_one_set_of_numbers(string, chapter=False, file=None, subtitle=None):
1101111012
# Check if there is more than one set of numbers in the string
1101211013
@lru_cache(maxsize=3500)
1101311014
def has_multiple_numbers(file_name):
11014-
return len(re.findall(r"\d+\.0+[1-9]+|\d+\.[1-9]+|\d+", file_name)) > 1
11015+
return len(re.findall(r"\d+\.0+[0-9]+|\d+\.[0-9]+|\d+", file_name)) > 1
1101511016

1101611017

1101711018
# Extracts all the numbers from a string

0 commit comments

Comments
 (0)