The Movie Database-ondersteuning

Is there a way to retrieve the duration of a movie through the API?

21 antwoorden (op pagina 2 van 2)

Jump to last post

Vorige pagina

@superboy97 said:

I don't know Scaffold, so I can't help you on this.

In Flutter

I don't know Scaffold or Flutter. The only things I can think of are:

  • The value of the runtime property is an integer, rather than a string. If you want to display the value, you might need to convert it to a string. (Though I say this with zero knowledge of Scaffold/Flutter, so this may not be true.)
  • Beware of typos. The API property is runtime, not _runtime or _runtie. But it could be that underscores are a convention in Scaffold/Flutter; I just don't know.

Regardless, this sounds like it's more of a programming problem than an issue with the TMDB API. You might be better off asking somewhere like Stack Overflow where there will be people who know about Scaffold/Flutter.

@ldjb said:

I don't know Scaffold or Flutter. The only things I can think of are:

  • The value of the runtime property is an integer, rather than a string. If you want to display the value, you might need to convert it to a string. (Though I say this with zero knowledge of Scaffold/Flutter, so this may not be true.)
  • Beware of typos. The API property is runtime, not _runtime or _runtie. But it could be that underscores are a convention in Scaffold/Flutter; I just don't know.

Regardless, this sounds like it's more of a programming problem than an issue with the TMDB API. You might be better off asking somewhere like Stack Overflow where there will be people who know about Scaffold/Flutter.

I am also cant get "runtime" field but I can fetch "vote_count" field. Both of them are integer. I think there is a problem with the TMDB.

@cemyilmaz463 said:

@ldjb said:

I don't know Scaffold or Flutter. The only things I can think of are:

  • The value of the runtime property is an integer, rather than a string. If you want to display the value, you might need to convert it to a string. (Though I say this with zero knowledge of Scaffold/Flutter, so this may not be true.)
  • Beware of typos. The API property is runtime, not _runtime or _runtie. But it could be that underscores are a convention in Scaffold/Flutter; I just don't know.

Regardless, this sounds like it's more of a programming problem than an issue with the TMDB API. You might be better off asking somewhere like Stack Overflow where there will be people who know about Scaffold/Flutter.

I am also cant get "runtime" field but I can fetch "vote_count" field. Both of them are integer. I think there is a problem with the TMDB.

I can only fetch "null" for runtime values

@cemyilmaz463 said:
I can only fetch "null" for runtime values

I tested it now and received correct data.

https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=pt-BR&append_to_response=credits,videos

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

@cemyilmaz463 said:

@ticao2 said:

@cemyilmaz463 said:
I can only fetch "null" for runtime values

I tested it now and received correct data.

https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=pt-BR&append_to_response=credits,videos

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

you are right, here is the problem I couldn't get the runtime field because I fetch the movie from the search api section.

https://api.themoviedb.org/3/search/movie?api_key=MY_KEY&query=fight

Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op tv-seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met tv-series

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c schakelen sluiten/openen
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen