Skip to main content

Documentation Status pypi

The MKV Episode Matcher VOB is a fork of MKV Episode Matcher for identifying TV series episodes from MKV files and renaming the files accordingly with additional support for VOB files, which are typically found in DVDs.

Quick start

To use the MKV Episode Matcher, follow these steps:

  1. Install pip install mkv-episode-matcher-vob

  2. Obtain an API key from TMDb (https://developers.themoviedb.org/authentication/getting-a-apikey).

  3. (Optional) - Obtain an API key from Opensubtitles.com by creating an API consumer (https://www.opensubtitles.com/en/consumers)

  4. Alternatively, add the .srt files to the cache directory. On Windows: C:\Users\YOUR_USER_NAME\.mkv-episode-matcher\cache\data\SHOW_NAME. The files need to be named with the season and episode, e.g. Show Name - S01E01.srt.

  5. Provide a filepath to your show directory. This is the main directory that contains all of the episodes for a specific show.

The directory and subfolders must be arranged in the following structure:

  • Show name - Season 1 - Season 2 - … - Season n

  1. Call mkv-match-vob with the TMDB_API_KEY and SHOW_DIR as arguments or in environment variables from your command line:

python mkv-match-vob --tmdb-api-key your-api-key --show-dir /path/to/show

Once TMDB_API_KEY is set, there’s no need to enter it again, as it gets stored in the config.ini file.

To get subtitles from opensubtitles.com, ensure that the appropriate credentials have been set, either via the CLI or in config.ini (On Windows: C:\Users\YOUR_USER_NAME\.mkv-episode-matcher\config.ini). Then add the --get-subs True flag to the CLI call

python mkv-match-vob --show-dir /path/to/show --get-subs True

7. For VOBSub: The VOBSub can’t be handled by FFmpeg, so you also need to download MKVToolNix (for mkvextract and mkvinfo) and BDSup2Sub. The latter needs a path specification to the BDSup2Sub.exe in the config.ini file.

Troubleshooting

  1. Make sure that all the necessary tools are installed and properly linked.

  2. Check your config.ini file. Here is an example structure (MacOS paths):

[Config]
tmdb_api_key = YOUR_TMDB_KEY
open_subtitles_api_key = YOUR_OPEN-SUBTITLES_KEY
open_subtitles_user_agent = YOUR_API-CONSUMER_NAME
open_subtitles_username = YOUR_OPEN-SUBTITLES_USERNAME
open_subtitles_password = YOUR_OPEN-SUBTITLES_USERPASSWORD
bdsup2sub_path = /Applications/BDSup2Sub512.jar
  1. It may be necessary to also add the path for tesseract to your config.ini. Here is an example for a homebrew installation:

tesseract_path = /opt/homebrew/Cellar/tesseract/5.4.1/bin/tesseract

(Note how the path leads to the tesseract executable)

How it works

MKV Episode Matcher extracts the subtitle text from each MKV file, then cross-references the text against .srt subtitle files that are either user-provided or downloaded from Opensubtitles.com.

License

MIT License

Copyright (c) 2024 Jonathan Sakkos

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Acknowledgments

This product uses the TMDB API but is not endorsed or certified by TMDB.

The Movie Database

Metadata

Release files for mkv-episode-matcher-vob 0.1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkv-episode-matcher-vob 0.1.5.1
File Size Uploaded
mkv_episode_matcher_vob-0.1.5.1.tar.gz 3.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkv-episode-matcher-vob 0.1.5.1
File Interpreter ABI Platform
mkv_episode_matcher_vob-0.1.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.4 MB

Release files / mkv_episode_matcher_vob-0.1.5.1.tar.gz

Download URL mkv_episode_matcher_vob-0.1.5.1.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
11ca417af4cb02358b03588138f0c60c62bbb2ccd11cd307b786de561cb5fa47
BLAKE2b-256 checksum
How to use checksums
beaea1a970689f9a2a1d6037dac8115e250f733ada8b9dd1630efdfe39fda9bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / mkv_episode_matcher_vob-0.1.5.1-py3-none-any.whl

Download URL mkv_episode_matcher_vob-0.1.5.1-py3-none-any.whl
Size 227.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cf4c8f824b607724c8fe85dbedbcfcebbb14eb414363bc615c679ee779f4e2e
BLAKE2b-256 checksum
How to use checksums
98267458138717d57ebd1a3faeb44b5794e86d3e0c558a1b89cb4fd22655e04e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1.5.1 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page