I'm trying to use the TV Movie Database with the latest Kodi implementation - specifying the TV Movie DB as my preferred scraper... and I'm having issues getting matches for certain shows. Is there a way to look up on the website what the expected naming convention is for a particular show? If there I I can't find it - please help. If there isn't perhaps that is a piece of data that can be added to the search results for a particular show??? Again please help :)
Thanks, Frank Wire
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by talestalker
on July 9, 2019 at 6:57 AM
I'm not familiar with Kodi (I'm Plex user) but I would expect it should be enough to use the exact show/movie name as shown on TMDB website (in your language). You can also experiment with TMDB website search to see if you get desired match as the website search should use the same API query as the Kodi.
Reply by frank.wire1@gmail.com
on July 9, 2019 at 9:13 AM
You would think... but I get a surprising number of mis -matches. Pretty good success matching movies (but still have misses), but TV shows seem to be more problematic. Being able to look up what the scrapper values from the API are for shows from the web-site wold cure things for me - I can find the shows and movies on the website, and am not opposed to renaming my files :). I don't think its an issue with Kodi specifically as much as the API being called returning false positives based on the file name I have... and Kodi happily mis-labeling my file in its display.
I did improve my hit percentage by including the year of certain shows and movies, but still have frustrating misses.
Reply by talestalker
on July 9, 2019 at 9:50 AM
Can you give me some examples of TV shows with wrong matches? Also, you can experiment with API search method on this page if you have TMDB API key. Each method has nice "Try it out" tab where you can inspect returned json data and debug your query.
Reply by frank.wire1@gmail.com
on July 9, 2019 at 12:43 PM
An example would be "the Marvelous Mrs Maisel" it identifies as something completely different... Its lieklly6 becasue I have the files named incorrectly somehow that is not obvious to me... that if I could see the appropriate tags I could fix :).
Reply by talestalker
on July 9, 2019 at 12:53 PM
TMDB API search query:
returns correctly the only match (regardless the query language):
so it really seems to me like an issue with Kodi.
Reply by frank.wire1@gmail.com
on July 9, 2019 at 5:06 PM
I don't think you're understanding what I'm trying to say.
"I" have an issue with how my files are named... They don't match the database. So when the API is used it returns the wrong thing. Not that the API is wrong or Kodi is messed up - but my naming of the data source is wrong.
What I suggested is that with the listings of the various TV shows and movies (the web pages for them) include the names being used in the database on the display so that I can know what the database has for the name and rename my data sources to match so the API will return what I'm looking for.
I also have an issue with Star Trek Deep Space Nine season 4. It appears to be missing the episode "For the Cause" episode 22... not sure if that is my fault or a database issue.
Reply by frank.wire1@gmail.com
on July 9, 2019 at 5:28 PM
As I suspected - my Deep Space Nine Issue was Also a problem with my file naming. When I renamed all the episodes for deep space nine I messed one of the up...
I'm 100% positive the issue is in my file names of the data sources... I just need to figure out what the database name for the movies and shows really is to get the correct match.
Is there an easy way to get that data? I was unable to use the API the way you seemed to - to grab the marvelous Mrs. Maisel data... I'm missing something basic I'm sure.
When I tried I get the following: {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}
Reply by talestalker
on July 9, 2019 at 6:05 PM
A/ TMDB doesn't specify any naming convention for 3rd party applications. For both movies and TV Shows TMDB always uses original title of the first release of the movie/show and that's all. The original titles for English release of the shows you have mentioned are:
These are the titles returned by API to Kodi (when making query in English).
You can see these titles on every movie/show page, and more detailed info can be found when you go to the "edit" page for the movie/show (e.g. https://www.themoviedb.org/tv/580-star-trek-deep-space-nine/edit?active_nav_item=primary_facts ). You don't need to use API to see them and there are no other hidden names on TMDB.
B/ TMDB API url I have posted earlier requires you to use your own TMDB API key instead of ###:
https://api.themoviedb.org/3/search/tv?api_key=###&language=en-US&query=the%20Marvelous%20Mrs%20Maisel&page=1
You can request the key in your TMDB profile settings:
It can take a few days to accept your request as every request is manually approved by site admin.
C/ Kodi has quite good guide to the file naming convention here https://kodi.wiki/view/Naming_video_files/TV_shows . Perhaps you have already seen it, but just to be sure...
Reply by frank.wire1@gmail.com
on July 9, 2019 at 8:42 PM
Thank you for your assistance. I have applied for a key and will try that route.
I tried the naming convention that you specified and it works most of the time for me... almost all movies. with the API return data I should be able to clean up the rest.
Thanks Again!