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

@@ -92,7 +92,18 @@ def main():
92
92
  nargs="?",
93
93
  help="Path to the tesseract executable (default: None)",
94
94
  )
95
+ parser.add_argument(
96
+ "--check-gpu",
97
+ type=bool,
98
+ default=False,
99
+ nargs="?",
100
+ help="Check if GPU is available (default: False)",
101
+ )
95
102
  args = parser.parse_args()
103
+ if args.check_gpu:
104
+ from mkv_episode_matcher.speech_to_text import check_gpu_support
105
+ check_gpu_support()
106
+ return
96
107
  logger.debug(f"Command-line arguments: {args}")
97
108
  open_subtitles_api_key = ""
98
109
  open_subtitles_user_agent = ""
@@ -87,4 +87,10 @@ def extract_audio(mkv_file, output_dir):
87
87
  else:
88
88
  logger.info(f"Audio file {wav_file} already exists, skipping extraction")
89
89
 
90
- return wav_file
90
+ return wav_file
91
+ def check_gpu_support():
92
+ logger.info('Checking GPU support...')
93
+ if torch.cuda.is_available():
94
+ logger.info(f"CUDA is available. Using GPU: {torch.cuda.get_device_name(0)}")
95
+ else:
96
+ logger.warning("CUDA not available. Using CPU. Refer to https://pytorch.org/get-started/locally/ for GPU support.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mkv-episode-matcher
3
- Version: 0.3.6
3
+ Version: 0.4.0
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
@@ -25,7 +25,18 @@ Requires-Dist: pytesseract>=0.3.13
25
25
  Requires-Dist: rapidfuzz>=3.10.1
26
26
  Requires-Dist: requests>=2.32.3
27
27
  Requires-Dist: tmdb-client>=0.0.1
28
+ Requires-Dist: torch>=2.5.1
29
+ Requires-Dist: torchaudio>=2.5.1
30
+ Requires-Dist: torchvision>=0.20.1
28
31
  Requires-Dist: wave>=0.0.2
32
+ Provides-Extra: cpu
33
+ Requires-Dist: torch>=2.5.1; extra == "cpu"
34
+ Requires-Dist: torchvision>=0.20.1; extra == "cpu"
35
+ Requires-Dist: torchaudio>=2.5.1; extra == "cpu"
36
+ Provides-Extra: cu124
37
+ Requires-Dist: torch>=2.5.1; extra == "cu124"
38
+ Requires-Dist: torchvision>=0.20.1; extra == "cu124"
39
+ Requires-Dist: torchaudio>=2.5.1; extra == "cu124"
29
40
 
30
41
  # MKV Episode Matcher
31
42
 
@@ -1,11 +1,11 @@
1
1
  mkv_episode_matcher/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb6ZAFs,66
2
2
  mkv_episode_matcher/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- mkv_episode_matcher/__main__.py,sha256=3ZcCUxeI7rUA-4oiCD2WXBiOFJAqLsVVWfZKN446FwQ,6792
3
+ mkv_episode_matcher/__main__.py,sha256=Tpppeh59E2PKCrALweBdfzrm4GUeK8FjAECz2ECvmXs,7105
4
4
  mkv_episode_matcher/config.py,sha256=zDDKBcsDt5fME9BRqiTi7yWKeast1pZh36BNYMvIBYM,2419
5
5
  mkv_episode_matcher/episode_identification.py,sha256=_6M1UJkq1RGfmLI32u9dNOVvgp5Vf2MjqW2MTx0Gl8E,10329
6
6
  mkv_episode_matcher/episode_matcher.py,sha256=vunYpHQxyXo3l88BUScXa7_kMYMCV1pXpQxaLa-plZA,4325
7
7
  mkv_episode_matcher/mkv_to_srt.py,sha256=4yxBHRVhgVby0UtQ2aTXGuoQpid8pkgjMIaHU6GCdzc,10857
8
- mkv_episode_matcher/speech_to_text.py,sha256=-bnGvmtPCKyHFPEaXwIcEYTf_P13rNpAJA-2UFeRFrs,2806
8
+ mkv_episode_matcher/speech_to_text.py,sha256=wVDrFFR7oASGMyq5cfOWmInEIeU9b3MPCLs9EyJrOMw,3128
9
9
  mkv_episode_matcher/subtitle_utils.py,sha256=rYSbd393pKYQW0w4sXgals02WFGqMYYYkQHDbEkWF8c,2666
10
10
  mkv_episode_matcher/tmdb_client.py,sha256=LbMCgjmp7sCbrQo_CDlpcnryKPz5S7inE24YY9Pyjk4,4172
11
11
  mkv_episode_matcher/utils.py,sha256=VASbougN3rb2iu40iZWkGjKIbahW713TOrFBo_TR9wo,14269
@@ -19,8 +19,8 @@ mkv_episode_matcher/libraries/pgs2srt/requirements.txt,sha256=sg87dqWw_qpbwciw-M
19
19
  mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/SubZero.py,sha256=geT1LXdVd8yED9zoJ9K1XfP2JzGcM7u1SslHYrJI09o,10061
20
20
  mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/post_processing.py,sha256=GKtVy_Lxv-z27mkRG8pJF2znKWXwZTot7jL6kN-zIxM,10503
21
21
  mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/dictionaries/data.py,sha256=AlJHUYXl85J95OzGRik-AHVfzDd7Q8BJCvD4Nr8kRIk,938598
22
- mkv_episode_matcher-0.3.6.dist-info/METADATA,sha256=gjlfeFtCjCCjf2qUWTGJ9zTvSSU_1KRhp1ZtIBISecI,5113
23
- mkv_episode_matcher-0.3.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
24
- mkv_episode_matcher-0.3.6.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
25
- mkv_episode_matcher-0.3.6.dist-info/top_level.txt,sha256=XRLbd93HUaedeWLtkyTvQjFcE5QcBRYa3V-CfHrq-OI,20
26
- mkv_episode_matcher-0.3.6.dist-info/RECORD,,
22
+ mkv_episode_matcher-0.4.0.dist-info/METADATA,sha256=o6xssGRpkRcr9elsAt0lf2ktwr2-7aSVweBZUDtlr7I,5545
23
+ mkv_episode_matcher-0.4.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
24
+ mkv_episode_matcher-0.4.0.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
25
+ mkv_episode_matcher-0.4.0.dist-info/top_level.txt,sha256=XRLbd93HUaedeWLtkyTvQjFcE5QcBRYa3V-CfHrq-OI,20
26
+ mkv_episode_matcher-0.4.0.dist-info/RECORD,,