Sprijin Bază de date filme (The Movie Database)

Hi Travis!

I've noticed recently (in the past week or so) that the poster_path in some of the requests of the movie search endpoint has the full path e.g. https://image.tmdb.org/t/p/w150//pes2HCVX60MNZZdUrKtgVNlv1ig.jpg

Because of this I am ending up with the following URI https://image.tmdb.org/t/p/w150/https://image.tmdb.org/t/p/w150//pes2HCVX60MNZZdUrKtgVNlv1ig.jpg

Any idea why? I'm not the only person having this issue.

1 răspuns (pe pagina 1 din 1)

Jump to last post

Hi @tidusjar,

The app that runs the search service has no idea of the full image URL (it's not even added to that codebase) so that's not what's happening... how are you building your URLs? All of my tests show the standard file path being returned:

https://api.themoviedb.org/3/search/movie?api_key=###&query=lord+of+the+rings
"poster_path":"\/zn5dEU1ygVeCEtFgttvujW3dCUj.jpg"
"backdrop_path":"\/pIUvQ9Ed35wlWhY2oU6OmwEsmzG.jpg"

Etc, etc...

Because of this I am ending up with the following URI https://image.tmdb.org/t/p/w150/https://image.tmdb.org/t/p/w150//pes2HCVX60MNZZdUrKtgVNlv1ig.jpg

That image URL is definitely wrong and will of course error. I'd take a look at how you're building the URL, it looks like its doubling up somehow.

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare