The MKV Episode Matcher is a tool for identifying TV series episodes from MKV files and renaming the files accordingly.
Project description
MKV Episode Matcher
Automatically match and rename your MKV TV episodes using The Movie Database (TMDb).
Features
- 🎯 Automatic Episode Matching: Uses TMDb to accurately identify episodes
- 📝 Subtitle Extraction: Extracts subtitles from MKV files
- 🔍 OCR Support: Handles image-based subtitles
- 🚀 Multi-threaded: Fast processing of multiple files
- ⬇️ Subtitle Downloads: Integration with OpenSubtitles
- ✨ Bulk Processing: Handle entire seasons at once
- 🧪 Dry Run Mode: Test changes before applying
Prerequisites
- Python 3.9 or higher
- FFmpeg installed and available in system PATH
- Tesseract OCR installed (required for image-based subtitle processing)
- TMDb API key
- OpenSubtitles account (optional, for subtitle downloads)
Quick Start
- Install the package:
pip install mkv-episode-matcher
- Run on your show directory:
mkv-match --show-dir "path/to/your/show" --get-subs true
Documentation
Full documentation is available at https://jsakkos.github.io/mkv-episode-matcher/
Directory Structure
MKV Episode Matcher expects your TV shows to be organized as follows:
Show Name/
├── Season 1/
│ ├── episode1.mkv
│ ├── episode2.mkv
├── Season 2/
│ ├── episode1.mkv
│ └── episode2.mkv
Reference Subtitle File Structure
Subtitle files that are not automatically downloaded using the --get-subs flag should be named as follows:
~/.mkv-episode-matcher/cache/data/Show Name/
├── Show Name - S01E01.srt
├── Show Name - S01E02.srt
└── ...
On Windows, the cache directory is located at C:\Users\{username}\.mkv-episode-matcher\cache\data\
Reference subtitle files should follow this naming pattern:
{show_name} - S{season:02d}E{episode:02d}.srt
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Acknowledgments
- TMDb for their excellent API
- OpenSubtitles for subtitle integration
- All contributors who have helped improve this project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkv_episode_matcher-0.3.5.tar.gz.
File metadata
- Download URL: mkv_episode_matcher-0.3.5.tar.gz
- Upload date:
- Size: 325.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4da785ee4e10e30bc3dbc6d3143de64b162b6023a200e4347cc41832d26d3d44
|
|
| MD5 |
23f5990f62b653ea08200f84f5dc7c21
|
|
| BLAKE2b-256 |
b5017b3d3843e7b8a270c57ea58c027561d10b6ae5800701b2b0c5cc69f9ed7c
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-0.3.5.tar.gz:
Publisher:
python-publish.yml on Jsakkos/mkv-episode-matcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkv_episode_matcher-0.3.5.tar.gz -
Subject digest:
4da785ee4e10e30bc3dbc6d3143de64b162b6023a200e4347cc41832d26d3d44 - Sigstore transparency entry: 161856332
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@1beb2cfc851b5cf5c86a1d78eaec3549be7d219d -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1beb2cfc851b5cf5c86a1d78eaec3549be7d219d -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkv_episode_matcher-0.3.5-py3-none-any.whl.
File metadata
- Download URL: mkv_episode_matcher-0.3.5-py3-none-any.whl
- Upload date:
- Size: 239.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0df9326eba135f50eca3e48babcda4d8ae26bbd1da790f37f8120ab971b15a
|
|
| MD5 |
ef337198ca5a540f4abf7debd890bcf3
|
|
| BLAKE2b-256 |
6c7302b2d235839a9b91e0094ec87c9dea2a603342981fb1ca803073a0abe7c5
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-0.3.5-py3-none-any.whl:
Publisher:
python-publish.yml on Jsakkos/mkv-episode-matcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkv_episode_matcher-0.3.5-py3-none-any.whl -
Subject digest:
9a0df9326eba135f50eca3e48babcda4d8ae26bbd1da790f37f8120ab971b15a - Sigstore transparency entry: 161856334
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@1beb2cfc851b5cf5c86a1d78eaec3549be7d219d -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1beb2cfc851b5cf5c86a1d78eaec3549be7d219d -
Trigger Event:
push
-
Statement type: