Skip to main content

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

Development Status PyPI version License: MIT Documentation Status Downloads GitHub last commit GitHub issues Tests codecov

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 or higher
  • FFmpeg installed and available in system PATH
  • TMDb API key (optional, for subtitle downloads)
  • OpenSubtitles account (optional, for subtitle downloads)

Quick Start

  1. Install the package:
pip install mkv-episode-matcher
  1. Download .srt subtitles files to ~/.mkv-episode-matcher/cache/data/Show Name/

  2. 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkv_episode_matcher-0.7.0.tar.gz (128.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkv_episode_matcher-0.7.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file mkv_episode_matcher-0.7.0.tar.gz.

File metadata

  • Download URL: mkv_episode_matcher-0.7.0.tar.gz
  • Upload date:
  • Size: 128.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkv_episode_matcher-0.7.0.tar.gz
Algorithm Hash digest
SHA256 34ef9972f5efba44c872e580581248db261da17ac2a19904dea605f972b9c186
MD5 604fa1441194b5b32a01fcb69e3e934b
BLAKE2b-256 faea7d9f98ae3ab260673f65ed5bae0461d011b674a9926b13e2fca03ad13430

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkv_episode_matcher-0.7.0.tar.gz:

Publisher: python-publish.yml on Jsakkos/mkv-episode-matcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkv_episode_matcher-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkv_episode_matcher-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 230a29bb9b92e844d445e789e8b8e75fd2f1dd23a4a0da380ce99b0e80027771
MD5 d616fca85b52bfa5d27149030d408dc7
BLAKE2b-256 57e797376ae10d55caa955900ea35a806a3e54b6426f5c974dffa052d55ed466

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkv_episode_matcher-0.7.0-py3-none-any.whl:

Publisher: python-publish.yml on Jsakkos/mkv-episode-matcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page