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
- 🎨 Rich User Interface: Color-coded output and progress indicators
- 📝 Subtitle Extraction: Extracts subtitles from MKV files
- 🔊 Speech Recognition: Uses Whisper for accurate episode identification
- 🚀 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
- 🎮 Interactive Mode: User-friendly season selection and configuration
Prerequisites
- Python 3.9-3.12
- FFmpeg installed and available in system PATH
- TMDb API key (optional, for subtitle downloads)
- OpenSubtitles account (optional, for subtitle downloads)
Quick Start
- Install the package:
pip install mkv-episode-matcher
-
Download .srt subtitles files to ~/.mkv-episode-matcher/cache/data/Show Name/
-
Run on your show directory:
mkv-match --show-dir "path/to/your/show"
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
Documentation
Full documentation is available at https://jsakkos.github.io/mkv-episode-matcher/
Changelog
See CHANGELOG.md for a detailed list of changes.
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.9.1.tar.gz.
File metadata
- Download URL: mkv_episode_matcher-0.9.1.tar.gz
- Upload date:
- Size: 150.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e180bcbac677cfc5466442a245acd354b71910147f0870cff7a77659e4557e2d
|
|
| MD5 |
6a20517dc1bfeb33581dc9c3046af0f7
|
|
| BLAKE2b-256 |
9ddd12f446c4e66bb5bc1e669647f07d13e3c06de1d21ef8ee3f29e4c54305c1
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-0.9.1.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.9.1.tar.gz -
Subject digest:
e180bcbac677cfc5466442a245acd354b71910147f0870cff7a77659e4557e2d - Sigstore transparency entry: 245662716
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@6385a00c85e286cbfc08d3341ea6c625b62258a9 -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6385a00c85e286cbfc08d3341ea6c625b62258a9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkv_episode_matcher-0.9.1-py3-none-any.whl.
File metadata
- Download URL: mkv_episode_matcher-0.9.1-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cbe7467f99b1af19e59bccea3035c95d06d9424b08a5de85a659a01652b9922
|
|
| MD5 |
c4ea3aca888a14e69d9a46c1bcdb04e8
|
|
| BLAKE2b-256 |
8958e149bd981a25571af4c3357d988824246288f6660d9d63d91bb1a3f81e4d
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-0.9.1-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.9.1-py3-none-any.whl -
Subject digest:
5cbe7467f99b1af19e59bccea3035c95d06d9424b08a5de85a659a01652b9922 - Sigstore transparency entry: 245662717
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@6385a00c85e286cbfc08d3341ea6c625b62258a9 -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6385a00c85e286cbfc08d3341ea6c625b62258a9 -
Trigger Event:
push
-
Statement type: