mkv-episode-matcher 0.7.0__py3-none-any.whl → 0.7.2__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 +11 -4
- {mkv_episode_matcher-0.7.0.dist-info → mkv_episode_matcher-0.7.2.dist-info}/METADATA +4 -4
- {mkv_episode_matcher-0.7.0.dist-info → mkv_episode_matcher-0.7.2.dist-info}/RECORD +6 -6
- {mkv_episode_matcher-0.7.0.dist-info → mkv_episode_matcher-0.7.2.dist-info}/WHEEL +1 -1
- {mkv_episode_matcher-0.7.0.dist-info → mkv_episode_matcher-0.7.2.dist-info}/entry_points.txt +0 -0
- {mkv_episode_matcher-0.7.0.dist-info → mkv_episode_matcher-0.7.2.dist-info}/top_level.txt +0 -0
|
@@ -10,6 +10,7 @@ import torch
|
|
|
10
10
|
import whisper
|
|
11
11
|
from loguru import logger
|
|
12
12
|
from rapidfuzz import fuzz
|
|
13
|
+
from utils import extract_season_episode
|
|
13
14
|
|
|
14
15
|
console = Console()
|
|
15
16
|
|
|
@@ -127,13 +128,19 @@ class EpisodeMatcher:
|
|
|
127
128
|
confidence = self.chunk_score(chunk_text, ref_text)
|
|
128
129
|
|
|
129
130
|
if confidence > best_confidence:
|
|
131
|
+
print(f"New best confidence: {confidence} for {ref_file}")
|
|
130
132
|
best_confidence = confidence
|
|
131
|
-
best_match = ref_file
|
|
133
|
+
best_match = Path(ref_file)
|
|
132
134
|
|
|
133
135
|
if confidence > self.min_confidence:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
season,
|
|
136
|
+
print(f"Matched with {best_match} (confidence: {best_confidence:.2f})")
|
|
137
|
+
try:
|
|
138
|
+
season,episode = extract_season_episode(best_match.stem)
|
|
139
|
+
except Exception as e:
|
|
140
|
+
print(f"Error extracting season/episode: {e}")
|
|
141
|
+
continue
|
|
142
|
+
print(f"Season: {season}, Episode: {episode} (confidence: {best_confidence:.2f})")
|
|
143
|
+
if season and episode:
|
|
137
144
|
return {
|
|
138
145
|
"season": season,
|
|
139
146
|
"episode": episode,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mkv-episode-matcher
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
16
16
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
17
|
-
Requires-Python:
|
|
17
|
+
Requires-Python: <3.13,>=3.9
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
Requires-Dist: configparser>=7.1.0
|
|
20
20
|
Requires-Dist: ffmpeg>=1.4
|
|
@@ -58,7 +58,7 @@ Automatically match and rename your MKV TV episodes using The Movie Database (TM
|
|
|
58
58
|
|
|
59
59
|
## Prerequisites
|
|
60
60
|
|
|
61
|
-
- Python 3.9
|
|
61
|
+
- Python 3.9-3.12
|
|
62
62
|
- [FFmpeg](https://ffmpeg.org/download.html) installed and available in system PATH
|
|
63
63
|
- TMDb API key (optional, for subtitle downloads)
|
|
64
64
|
- OpenSubtitles account (optional, for subtitle downloads)
|
|
@@ -2,13 +2,13 @@ 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=O3GQk5R9BFuA-QNlqfBgDSS7G_W8IGSxiV8CFUbcaLc,10059
|
|
4
4
|
mkv_episode_matcher/config.py,sha256=EcJJjkekQ7oWtarUkufCYON_QWbQvq55-zMqCTOqSa4,2265
|
|
5
|
-
mkv_episode_matcher/episode_identification.py,sha256=
|
|
5
|
+
mkv_episode_matcher/episode_identification.py,sha256=H_cMURCzSSM227exB51o7WReJKl7q29hmgvE0aUzgn8,12967
|
|
6
6
|
mkv_episode_matcher/episode_matcher.py,sha256=SxAbnXuTJITD1o0WohE9heE3Fm9zW_w0Nq3GzqtcIpQ,6329
|
|
7
7
|
mkv_episode_matcher/subtitle_utils.py,sha256=Hz9b4CKPV07YKTY4dcN3WbvdbvH-S3J4zcb9CiyvPlE,2551
|
|
8
8
|
mkv_episode_matcher/tmdb_client.py,sha256=LbMCgjmp7sCbrQo_CDlpcnryKPz5S7inE24YY9Pyjk4,4172
|
|
9
9
|
mkv_episode_matcher/utils.py,sha256=modXMLmt2fpny8liXwqe4ylxnwwfg_98OLOacv5izps,14501
|
|
10
|
-
mkv_episode_matcher-0.7.
|
|
11
|
-
mkv_episode_matcher-0.7.
|
|
12
|
-
mkv_episode_matcher-0.7.
|
|
13
|
-
mkv_episode_matcher-0.7.
|
|
14
|
-
mkv_episode_matcher-0.7.
|
|
10
|
+
mkv_episode_matcher-0.7.2.dist-info/METADATA,sha256=AvDPqs96T0pikdFHYVm0VFPvS7UbKrE0QCtsys9MMec,5384
|
|
11
|
+
mkv_episode_matcher-0.7.2.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
12
|
+
mkv_episode_matcher-0.7.2.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
|
|
13
|
+
mkv_episode_matcher-0.7.2.dist-info/top_level.txt,sha256=XRLbd93HUaedeWLtkyTvQjFcE5QcBRYa3V-CfHrq-OI,20
|
|
14
|
+
mkv_episode_matcher-0.7.2.dist-info/RECORD,,
|
{mkv_episode_matcher-0.7.0.dist-info → mkv_episode_matcher-0.7.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|