Wsparcie The Movie Database

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!

Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.

Globalny

s zaznacz pasek wyszukiwania
p otwórz menu profilu
esc Zamknij otwarte okno
? otwórz okno skrótów klawiszowych

On media pages

b go back (or to parent when applicable)
e przejdź do strony edycji

On TV season pages

(prawa strzałka) przejdź do następnego sezonu
(lewa strzałka) przejdź do poprzedniego sezonu

On TV episode pages

(prawa strzałka) przejdź do następnego odcinka
(lewa strzałka) przejdź do poprzedniego odcinka

On all image pages

a otwórz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prześlij formularz

On discussion pages

n otwórz nową dyskusję
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusję
l przejdź do ostatniej odpowiedzi
ctrl+ enter wyślij swoją wiadomość
(prawa strzałka) następna strona
(lewa strzałka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj