The Movie Database Support

Apart from removing ':' and '?' characters, my "Series" app expects media file names to accurately reflect "episode title".

It attempts to automatically rename a file if it doesn't match the "definitive" episode title as retrieved from tmdb. To get that definitive title, I use the "search" API call...

curl 'https://api.themoviedb.org/3/search/movie?api_key={APIKEY}&query={CURRENT_TITLE}' | jq '.results[0]'

But there's a problem with the Tom & Jerry cartoon called "DownBeat Bear". The file on my computer was originally called "Down Beat Bear.avi", for which the above API call returns title= "DownBeat Bear". But once the filename has been changed to remove that "unwanted" space between "Down" and "Beat", if I call the API with the "corrected" name, it returns me exactly the same details as before, except that title= "Down Beat Bear" (WITH THE SPACE).

It's effectively an infinite loop, because every time the app checks the title, it toggles between including or removing the space, so the filename keeps changing!

As a "workaround", I can retrieve (TMDB) "id" from the above call, then call...

curl 'https://api.themoviedb.org/3/movie/{TMDB_id}?api_key=<API_KEY>'

...and use the results from that call to get the "definitive" title (which never includes that extraneous space). My workaround should always work, but I think the way the "search" API behaves is "unusual", to say the least!

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Masuk