mkv-episode-matcher 0.9.5__py3-none-any.whl → 0.9.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mkv-episode-matcher might be problematic. Click here for more details.
- mkv_episode_matcher/episode_identification.py +5 -3
- mkv_episode_matcher/utils.py +4 -0
- {mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/METADATA +1 -1
- {mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/RECORD +8 -8
- {mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/WHEEL +0 -0
- {mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/entry_points.txt +0 -0
- {mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/licenses/LICENSE +0 -0
- {mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/top_level.txt +0 -0
|
@@ -155,11 +155,13 @@ class EpisodeMatcher:
|
|
|
155
155
|
]
|
|
156
156
|
|
|
157
157
|
reference_files = []
|
|
158
|
-
for
|
|
158
|
+
for pattern in patterns:
|
|
159
|
+
# Use case-insensitive file extension matching by checking both .srt and .SRT
|
|
160
|
+
srt_files = list(reference_dir.glob("*.srt")) + list(reference_dir.glob("*.SRT"))
|
|
159
161
|
files = [
|
|
160
162
|
f
|
|
161
|
-
for f in
|
|
162
|
-
if
|
|
163
|
+
for f in srt_files
|
|
164
|
+
if re.search(f"{pattern}\\d+", f.name, re.IGNORECASE)
|
|
163
165
|
]
|
|
164
166
|
reference_files.extend(files)
|
|
165
167
|
|
mkv_episode_matcher/utils.py
CHANGED
|
@@ -24,6 +24,7 @@ def normalize_path(path_str):
|
|
|
24
24
|
"""
|
|
25
25
|
Normalize a path string to handle cross-platform path issues.
|
|
26
26
|
Properly handles trailing slashes and backslashes in both Windows and Unix paths.
|
|
27
|
+
Also strips surrounding quotes that might be present in command line arguments.
|
|
27
28
|
|
|
28
29
|
Args:
|
|
29
30
|
path_str (str): The path string to normalize
|
|
@@ -35,6 +36,9 @@ def normalize_path(path_str):
|
|
|
35
36
|
if isinstance(path_str, Path):
|
|
36
37
|
path_str = str(path_str)
|
|
37
38
|
|
|
39
|
+
# Strip surrounding quotes (both single and double)
|
|
40
|
+
path_str = path_str.strip().strip('"').strip("'")
|
|
41
|
+
|
|
38
42
|
# Remove trailing slashes or backslashes
|
|
39
43
|
path_str = path_str.rstrip("/").rstrip("\\")
|
|
40
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mkv-episode-matcher
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.7
|
|
4
4
|
Summary: The MKV Episode Matcher is a tool for identifying TV series episodes from MKV files and renaming the files accordingly.
|
|
5
5
|
Home-page: https://github.com/Jsakkos/mkv-episode-matcher
|
|
6
6
|
Author: Jonathan Sakkos
|
|
@@ -2,14 +2,14 @@ mkv_episode_matcher/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb
|
|
|
2
2
|
mkv_episode_matcher/__init__.py,sha256=u3yZcpuK0ICeUjxYKePvW-zS61E5ss5q2AvqnSHuz9E,240
|
|
3
3
|
mkv_episode_matcher/__main__.py,sha256=iYuO2xWt1Xf_MXxJd_XKCrEgpicawE8LlZWtIq9dk90,12380
|
|
4
4
|
mkv_episode_matcher/config.py,sha256=2UUdhVZ3uMXPenPlwvpgRujointbQItrcj46GW_nnfY,2351
|
|
5
|
-
mkv_episode_matcher/episode_identification.py,sha256=
|
|
5
|
+
mkv_episode_matcher/episode_identification.py,sha256=oKIsY8RgcbHpD0Q3rTkrds0GnLIJzrS8x8wn5zh8qYc,17101
|
|
6
6
|
mkv_episode_matcher/episode_matcher.py,sha256=r6A9K4g4a8yU5aJ42n2yWuVgu5azBRE9FY3kDcdfe3w,6545
|
|
7
7
|
mkv_episode_matcher/subtitle_utils.py,sha256=z4eYTMAoI8BVzdCNeqHu-9mkhwG8RzxE5BbNjWUJwCg,2552
|
|
8
8
|
mkv_episode_matcher/tmdb_client.py,sha256=LbMCgjmp7sCbrQo_CDlpcnryKPz5S7inE24YY9Pyjk4,4172
|
|
9
|
-
mkv_episode_matcher/utils.py,sha256=
|
|
10
|
-
mkv_episode_matcher-0.9.
|
|
11
|
-
mkv_episode_matcher-0.9.
|
|
12
|
-
mkv_episode_matcher-0.9.
|
|
13
|
-
mkv_episode_matcher-0.9.
|
|
14
|
-
mkv_episode_matcher-0.9.
|
|
15
|
-
mkv_episode_matcher-0.9.
|
|
9
|
+
mkv_episode_matcher/utils.py,sha256=u43DJc5p_WdJsl3ku1NAKmZS-vi7jwtlxTnfiwvYooc,18155
|
|
10
|
+
mkv_episode_matcher-0.9.7.dist-info/licenses/LICENSE,sha256=ScBvQ_sUEpaRMDYp01qmMDELT1nTknFP2w-VRAS54TY,1071
|
|
11
|
+
mkv_episode_matcher-0.9.7.dist-info/METADATA,sha256=ZZzZNRS8QyjgZh-Nz0apCQxfund29IvYnT8NzJFizo0,7664
|
|
12
|
+
mkv_episode_matcher-0.9.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
mkv_episode_matcher-0.9.7.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
|
|
14
|
+
mkv_episode_matcher-0.9.7.dist-info/top_level.txt,sha256=XRLbd93HUaedeWLtkyTvQjFcE5QcBRYa3V-CfHrq-OI,20
|
|
15
|
+
mkv_episode_matcher-0.9.7.dist-info/RECORD,,
|
|
File without changes
|
{mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mkv_episode_matcher-0.9.5.dist-info → mkv_episode_matcher-0.9.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|