The Movie Database (TMDB) is a community-driven database of movies and TV series that provides:
- 🖼️ High-quality posters and artwork
- 📝 Plots and descriptions
- ⭐ Ratings and reviews
- 🎭 Cast and crew information
- 🌍 Multilingual content (including Italian)
Without TMDB:
- File saved as:
The.Walking.Dead.S11E24.FINAL.ITA.1080p.mkv - You have to manually choose Movie/TV
- Messy filenames with technical tags
With TMDB:
- File renamed:
The Walking Dead - S11E24 - Rest in Peace.mkv - Automatic recognition with poster
- Perfect organization for Jellyfin/Plex
- Go to https://www.themoviedb.org/signup
- Fill out the form:
- Username (choose any)
- Password (secure!)
- Email (real, confirmation required)
- Accept the terms
- Click "Sign Up"
- Confirm the email you receive
- Once logged in, go to: https://www.themoviedb.org/settings/api
- Click "Request an API Key"
- Choose "Developer" (it's free)
- Fill out the form:
- Application Name: MediaButler Bot (or any name)
- Application URL: You can use http://localhost
- Application Summary: "Personal media organization bot for my home server"
- Accept the terms
After approval (immediate), you will see:
- API Key (v3 auth):
8a7b9c6d5e4f3g2h1i0j9k8l7m6n5o4p(example) - API Read Access Token: (ignore this)
Copy only the API Key (v3 auth)!
Add to your .env:
# TMDB Configuration
TMDB_API_KEY=8a7b9c6d5e4f3g2h1i0j9k8l7m6n5o4p
TMDB_LANGUAGE=it-IT # For results in ItalianYou can change TMDB_LANGUAGE to get results in other languages:
it-IT- Italianen-US- Englishes-ES- Spanishfr-FR- Frenchde-DE- Germanja-JP- Japanese
After configuration:
- Restart the bot
- Use
/start- it should say "✅ TMDB Integration Active" - Send a video file
- The bot should:
- Show "🔍 Searching TMDB database..."
- Find the match with poster
- Show detailed info
- Check that you saved the
.env - Make sure the API key is correct
- Restart the bot/container
- The filename might be too "messy"
- Try with simpler filenames
- Check the configured language
- TMDB allows 40 requests every 10 seconds
- More than enough for personal use
- If you exceed the limit, wait 10 seconds
With a free account you get:
- ✅ Unlimited searches per day
- ✅ 40 requests every 10 seconds
- ✅ Access to all the database
- ✅ No cost
More than enough for personal/family use!
-
Well-named files = better matches
- ✅
Breaking.Bad.S01E01.mkv - ❌
bb.1x1.ITA.CR@ZY.N@M3.mkv
- ✅
-
Year in movie files helps a lot:
- ✅
Avatar.2009.mkv - ✅
Avatar (2009).mkv
- ✅
-
Anime episodes: better with series name
- ✅
One Piece 1081.mkv - ❌
OP1081.mkv
- ✅
- TMDB does not track what you download
- The API key is only to identify your app
- No personal data is shared
- The bot works locally only
With TMDB enabled, the bot can:
- Auto-detect movie vs TV show
- Rename with episode titles
- Show posters as preview
- Fuzzy match for messy names
- Multi-language for international content
- Safe fallback if TMDB is offline
Problems with TMDB?
- API Documentation: https://developers.themoviedb.org/3
- TMDB Forum: https://www.themoviedb.org/talk
- Bot GitHub: [your repo]
Note: TMDB is optional. The bot also works without it, but with TMDB the experience is much better!