mkv-episode-matcher 0.1.12__py3-none-any.whl → 0.1.13__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.

@@ -8,7 +8,7 @@ from mkv_episode_matcher.__main__ import CACHE_DIR, CONFIG_FILE
8
8
  from mkv_episode_matcher.config import get_config
9
9
  from mkv_episode_matcher.mkv_to_srt import convert_mkv_to_srt
10
10
  from mkv_episode_matcher.tmdb_client import fetch_show_id
11
- from mkv_episode_matcher.utils import check_filename, cleanup_ocr_files, get_subtitles
11
+ from mkv_episode_matcher.utils import check_filename, cleanup_ocr_files, get_subtitles,clean_text
12
12
 
13
13
 
14
14
  # hash_data = {}
@@ -23,7 +23,7 @@ def process_show(season=None, dry_run=False, get_subs=False):
23
23
  """
24
24
  config = get_config(CONFIG_FILE)
25
25
  show_dir = config.get("show_dir")
26
- show_name = os.path.basename(show_dir)
26
+ show_name = clean_text(os.path.basename(show_dir))
27
27
  logger.info(f"Processing show '{show_name}'...")
28
28
 
29
29
  show_id = fetch_show_id(show_name)
@@ -229,3 +229,8 @@ def cleanup_ocr_files(show_dir):
229
229
  if os.path.exists(ocr_dir_path):
230
230
  logger.info(f"Cleaning up OCR files in {ocr_dir_path}")
231
231
  shutil.rmtree(ocr_dir_path)
232
+ def clean_text(text):
233
+ # Remove brackets, parentheses, and their content
234
+ cleaned_text = re.sub(r'\[.*?\]|\(.*?\)|\{.*?\}', '', text)
235
+ # Strip leading/trailing whitespace
236
+ return cleaned_text.strip()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkv-episode-matcher
3
- Version: 0.1.12
3
+ Version: 0.1.13
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,11 +2,10 @@ mkv_episode_matcher/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb
2
2
  mkv_episode_matcher/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
3
  mkv_episode_matcher/__main__.py,sha256=lDMYl6SOH9fV_X7fPvMeIXEzT-jAaDg90FbqRUZyUb4,6772
4
4
  mkv_episode_matcher/config.py,sha256=zDDKBcsDt5fME9BRqiTi7yWKeast1pZh36BNYMvIBYM,2419
5
- mkv_episode_matcher/episode_matcher.py,sha256=HJQ6ucGtHbFQqG27GohDJjd4-pDZyqPig-x5SRju0Q8,9536
5
+ mkv_episode_matcher/episode_matcher.py,sha256=l56EyLyeJpO4wRavY-VQtVZm7XBwUOCuhyfcORkoKnY,9559
6
6
  mkv_episode_matcher/mkv_to_srt.py,sha256=m34nhgiBSBGpymePUt2C-EmGhcjoXnv3S0SLod-DkFo,6092
7
- mkv_episode_matcher/old_requirements.txt,sha256=76Vnmjv4R08bmjbaAu8Kbl0ogyT7MBdVPprBegxc4Uk,76
8
7
  mkv_episode_matcher/tmdb_client.py,sha256=LbMCgjmp7sCbrQo_CDlpcnryKPz5S7inE24YY9Pyjk4,4172
9
- mkv_episode_matcher/utils.py,sha256=Jc0_sn_UG-n_sQ-oLQqMhFuU2QmNiU1iNb8sfd8ljEw,9439
8
+ mkv_episode_matcher/utils.py,sha256=nexZbTtP2MR5oWqT9I2lDZg-2cRlw-2mP6kbYmdTNA8,9650
10
9
  mkv_episode_matcher/libraries/pgs2srt/.gitignore,sha256=mt3uxWYZaFurMw_yGE258gWhtGKPVR7e3Ll4ALJpyj4,23
11
10
  mkv_episode_matcher/libraries/pgs2srt/README.md,sha256=olb25G17tj0kxPgp_LcH5I2QWXjgP1m8JFyjYRGz4UU,1374
12
11
  mkv_episode_matcher/libraries/pgs2srt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,8 +18,8 @@ mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/post_processing.py,sha25
19
18
  mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/dictionaries/data.py,sha256=GpbuAVy8IPX7KRqKUuhToJuUVqhASg_Phw_6j8KJN6g,676580
20
19
  mkv_episode_matcher/notebooks/get_subtitles_test.ipynb,sha256=7dku1ttsUB96R_7RVhSKAlbMfuJsOxkXAtFgJUwVqqc,8031
21
20
  mkv_episode_matcher/notebooks/whisper.ipynb,sha256=c2IoZxpuBca9oId4KQUAzcCCiv8OogSDGpFE6fdxSJ4,5880
22
- mkv_episode_matcher-0.1.12.dist-info/METADATA,sha256=LAH8MaSC-za_vcCd63PEgu5Dv9jCsEazmRcmvgRkzes,4841
23
- mkv_episode_matcher-0.1.12.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
24
- mkv_episode_matcher-0.1.12.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
25
- mkv_episode_matcher-0.1.12.dist-info/top_level.txt,sha256=XRLbd93HUaedeWLtkyTvQjFcE5QcBRYa3V-CfHrq-OI,20
26
- mkv_episode_matcher-0.1.12.dist-info/RECORD,,
21
+ mkv_episode_matcher-0.1.13.dist-info/METADATA,sha256=PDlYlhGWOlbdeOUNFAbccsFB1clMd2wCbXrHrjItVQo,4841
22
+ mkv_episode_matcher-0.1.13.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
23
+ mkv_episode_matcher-0.1.13.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
24
+ mkv_episode_matcher-0.1.13.dist-info/top_level.txt,sha256=XRLbd93HUaedeWLtkyTvQjFcE5QcBRYa3V-CfHrq-OI,20
25
+ mkv_episode_matcher-0.1.13.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.5.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- requests
2
- loguru
3
- pillow
4
- configparser
5
- tmdb_client
6
- pytesseract
7
- opensubtitlescom