TMDB podrška

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!

Ne možete pronaći film ili TV seriju? prijavite se da biste ga napravili.

Global

s focus the search bar
p otvorite izbornik profila
esc zatvori otvoreni prozor
? open keyboard shortcut window

On media pages

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

On TV season pages

(desna strelica) idi na sljedeću sezonu
(left arrow) go to previous season

On TV episode pages

(desna strelica) idi na sljedeću epizodu
(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 otvori aktivnost
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(desna strelica) sljedeća stranica
(left arrow) previous page

Postavke

Want to rate or add this item to a list?

Prijavi se