Auto-Detect & Match to TVmaze β’ Jellyfin / Plex / Emby Compatible β’ Anime Support
A powerful, user-friendly Python application that automatically detects TV shows in your folders, matches them to TVmaze, and renames them to the perfect format for media servers.
- Auto-Detection - Scans folders and intelligently extracts show names
- Auto-Matching - Automatically searches TVmaze for all detected shows
- Auto-Merging - Combines similar show names (e.g., "Attack On Titan" + "Attack On Titan S2")
- Anime Support - Handles absolute episode numbering (Naruto #150, etc.)
- Dry Run Mode - Preview changes before applying them
- Keyboard Shortcuts - Fast workflow with Ctrl+O, Ctrl+R, Ctrl+S, etc.
ShowName - S01E001 - [2008-01-20] - Episode Title.mkv
Perfect for:
- π¬ Jellyfin
- π₯ Plex
- πΊ Emby
- ποΈ Kodi
pip install customtkinter- Launch the application
- Press Ctrl+O or click "Browse Folder"
- Select your TV shows root folder
- Press Ctrl+R - Auto-scans and searches TVmaze
- Review the matches (change if needed)
- Press Ctrl+S to START!
| Shortcut | Action |
|---|---|
Ctrl+O |
Open/Browse folder |
Ctrl+R or F5 |
Scan folder |
Ctrl+L |
Load episodes |
Ctrl+S |
START RENAME |
Ctrl+D |
Toggle Dry Run / Live mode |
Escape |
Clear focus |
.mkv- Matroska Video.mp4- MPEG-4 Video.avi- Audio Video Interleave.m4v- iTunes Video.mov- QuickTime Movie.wmv- Windows Media Video.ts- Transport Stream.flv- Flash Video.webm- WebM Video
β
Breaking Bad S01E01.mkv
β
Breaking.Bad.1x01.mkv
β
Breaking Bad - Season 1 Episode 1.mkv
β
Breaking Bad - S01.E01.mkv
β
Breaking Bad - 1x01.mkv
β
Naruto - 001.mkv
β
Naruto - Ep001.mkv
β
Naruto - Episode 001.mkv
β
Naruto.001.mkv
βοΈ S01OP01 - Opening Theme.mkv
βοΈ S01ED01 - Ending Theme.mkv
βοΈ NCOP01.mkv
βοΈ Special - Behind the Scenes.mkv
Merge shows that were detected as separate:
"Jujutsu Kaisen" + "Jujutsu Kaisen S01 Dd2 0 [pahe Li]"
β
"Jujutsu Kaisen" (51 files)
If auto-match is wrong:
- Type custom search term
- Press Enter or click π
- Select correct show from dropdown
- Include air-date - Adds
[2008-01-20]to filename - Try absolute episode # - For anime with absolute numbering
- Organize into folders - Creates
ShowName/Season 01/structure - Auto-load episodes - Loads episodes automatically after matching
π Root Folder
βββ Attack on Titan S1/
β βββ Attack.on.Titan.S01E01.mkv
β βββ Attack.on.Titan.S01E02.mkv
βββ Attack on Titan S2/
βββ Attack.on.Titan.S02E01.mkv
βββ Attack.on.Titan.S02E02.mkv
π Detects: "Attack On Titan" (2 folders merged)
π Searches TVmaze: "Attack On Titan"
β
Found: Attack on Titan (2013) [Adult Swim]
π₯ Loads: 89 episodes across 4 seasons
DRY RUN:
β Attack on Titan - S01E001 - [2013-04-07] - To You, in 2000 Yβ¦
β Attack on Titan - S01E002 - [2013-04-14] - That Day - The Faβ¦
LIVE MODE:
β
Attack on Titan - S01E001 - [2013-04-07] - To You, in 2000 Yβ¦
β
Attack on Titan - S01E002 - [2013-04-14] - That Day - The Faβ¦
Automatically removes these from show names:
- Quality:
1080p,720p,4K,BluRay,WEB-DL - Codecs:
x264,x265,HEVC,H.264 - Audio:
AAC,DD5.1,DTS,ATMOS - Streaming:
AMZN,NF,DSNP,HMAX - Release Groups:
[YIFY],(PSA),pahe.in,SubsPlease - Tags:
REPACK,PROPER,INTERNAL
D:/
βββ attack.titan.s1.fhd.265-pahe.in/
β βββ Attack.on.Titan.S01E01.To.You.1080p.BluRay.x265.DD+2.0-Pahe.in.mkv
β βββ Attack.on.Titan.S01E02.That.Day.1080p.BluRay.x265.DD+2.0-Pahe.in.mkv
β βββ ...
βββ attack.titan.s2/
βββ Attack.on.Titan.S02E01.Beast.Titan.mkv
βββ ...
D:/
βββ Attack on Titan/
βββ Season 01/
β βββ Attack on Titan - S01E001 - [2013-04-07] - To You, in 2000 Years.mkv
β βββ Attack on Titan - S01E002 - [2013-04-14] - That Day.mkv
β βββ ...
βββ Season 02/
βββ Attack on Titan - S02E001 - [2017-04-01] - Beast Titan.mkv
βββ ...
| Option | Description | Default |
|---|---|---|
| Dry Run | Preview without changes | β ON |
| Include air-date | Add [YYYY-MM-DD] |
β ON |
| Try absolute episode # | For anime | β ON |
| Organize into folders | Create Show/Season structure | β OFF |
| Auto-load episodes | Load after search | β ON |
Solution: Use manual search or merge shows
1. Type correct name in "Custom search"
2. Press Enter or click π
3. Select from dropdown
Solutions:
- β Enable "Try absolute episode #" for anime
- β Check TVmaze has correct episode data
- β Use custom search to find better match
Solution: The tool now auto-adds (1), (2), etc. to duplicates
Solution: Now auto-skipped (OP01, ED01, NCOP, etc.)
After each run:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
COMPLETE!
β
Renamed: 141
β Skipped: 119
β Errors: 0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Color | Meaning |
|---|---|
| π’ Green (Mint) | Success, Ready |
| π΅ Blue (Sky) | Info, Actions |
| π‘ Yellow | Warning, Dry Run |
| π΄ Red | Error, Live Mode |
| βͺ Gray | Neutral, Skipped |
- Always start with Dry Run to preview changes
- Review auto-matches - they're usually 95%+ accurate
- Use merge feature for shows split across folders
- Enable auto-load for fastest workflow
- Keyboard shortcuts are your friend:
Ctrl+O β Ctrl+R β Ctrl+S
{Show Name} - S{Season}E{Episode} - [{Air Date}] - {Title}.{ext}
β
Breaking Bad - S01E001 - [2008-01-20] - Pilot.mkv
β
Attack on Titan - S03E022 - [2019-06-30] - Beyond the Wall.mkv
β
Jujutsu Kaisen - S02E023 - [2023-12-28] - The Shibuya Incident.mkv
β
Breaking Bad - S01E001 - Pilot.mkv
- β Dry Run Default - Always previews first
- β No File Deletion - Only renames
- β Duplicate Protection - Won't process same file twice
- β Backup Recommendation - Always backup before live mode
- β Path Length Protection - Prevents Windows path-too-long errors
- β Collision Handling - Adds (1), (2) if file exists
This application uses the TVmaze API for show and episode data.
- API: https://www.tvmaze.com/api
- Rate Limit: Respects TVmaze guidelines with built-in delays
- Attribution: TVmaze data is property of TVmaze
Q: Does it work with movies? A: No, this is specifically for TV shows.
Q: Can I undo renames? A: No automatic undo. Always use Dry Run first!
Q: What about Naruto numbering? A: Enable "Try absolute episode #" for correct anime numbering.
Q: Why is Naruto showing S2002E001? A: TVmaze organizes Naruto by year. This is correct per their data.
Q: Can I change the output format?
A: Not in the GUI, but you can modify the build_name function in the code.
This is free software. Use at your own risk. Always backup your files before using live mode.
- β¨ Auto-search on scan
- β¨ Keyboard shortcuts
- β¨ Auto-skip OP/ED/Specials
- β¨ Duplicate file protection
- β¨ File exists handling
- β¨ Ready status badge
- π Fixed: Multiple processing of same file
- π Fixed: File collision errors
- Basic TVmaze matching
- Manual search workflow
- Dry run mode
- Episode detection
- CustomTkinter - Modern UI framework
- TVmaze - Episode data API
- Community - Testing and feedback
For bugs, suggestions, or questions, please open an issue on GitHub.
Made with β€οΈ for the home media server community
Happy renaming! π