Sprijin Bază de date filme (The Movie Database)

Can someone explain to me why I get no result with the following query:

https://api.themoviedb.org/3/discover/movie?api_key=###&language=en-US&sort_by=revenue.desc&include_adult=false&include_video=false&page=1&with_companies=3&with_runtime.gte=60

I broke down every step of my code. The problem is with the runtime, like there is no movie from pixar with a runtime greater than 1 hour. What do you think ? Any idea ?

Thank you for your support

Michael

5 răspunsuri (pe pagina 1 din 1)

Jump to last post

I've edited your post to not include your API key.

As for your question - seems strange to me too. Editing some random Pixar movie and saving it apparently solves the problem. I tried it for the Cars movie and when you make your query with "&with_runtime.gte=60", it is now returned as the only result:

https://api.themoviedb.org/3/discover/movie?api_key=###&language=en-US&sort_by=revenue.desc&include_adult=false&include_video=false&page=1&with_companies=3&with_runtime.gte=59

{  
  "page": 1,  
  "total_results": 1,  
  "total_pages": 1,  
  "results": [  
    {  
      "popularity": 109.164,  
      "vote_count": 8057,  
      "video": false,  
      "poster_path": "/jpfkzbIXgKZqCZAkEkFH2VYF63s.jpg",  
      "id": 920,  
      "adult": false,  
      "backdrop_path": "/a1MlbLBk5Sy6YvMbSuKfwGlDVlb.jpg",  
      "original_language": "en",  
      "original_title": "Cars",  
      "genre_ids": [  
        12,  
        16,  
        35,  
        10751  
      ],  
      "title": "Cars",  
      "vote_average": 6.7,  
      "overview": "Lightning McQueen, a hotshot rookie race car driven to succeed, discovers that life is about the journey, not the finish line, when he finds himself unexpectedly detoured in the sleepy Route 66 town of Radiator Springs. On route across the country to the big Piston Cup Championship in California to compete against two seasoned pros, McQueen gets to know the town's offbeat characters.",  
      "release_date": "2006-06-09"  
    }  
  ]  
}  

Perhaps @travisbell would know better thinking.

Hi guys,

Yes, it seems like this is a legitimate bug. I have created a new ticket for me to look into this here. I will update this post when I get the fix pushed.

Cheers.

I believe the runtime query issues have been fixed, please let me know if you find anymore issues.

Cheers.

Hello,

it seems like, the runtime query does not use the region specified in the request, but takes all regions into account to filter by runtime. Is this the desired behavior?

Best regards

Yes, this is the intended behaviour. Querying runtimes does not take the requested translation into account.

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