Soporte de The Movie Database

Hello,

for every request I do with the API (discover/movies) on android, the vote_average is aways null to all movies.

1 respuesta (en la página 1 de 1)

Jump to last post

You'll have to look at how your parsing fields as the data is present:

Request

curl -v "https://api.themoviedb.org/3/discover/movie?api_key=###&include_adult=false&include_video=false&vote_average.gte=7&with_release_type=3&release_date.gte=2001-01-01&release_date.lte=2001-12-31"
*   Trying 23.21.92.78...
* TCP_NODELAY set
* Connected to api.themoviedb.org (23.21.92.78) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=*.themoviedb.org
*  start date: Dec  3 00:00:00 2018 GMT
*  expire date: Dec  2 12:00:00 2020 GMT
*  subjectAltName: host "api.themoviedb.org" matched cert's "*.themoviedb.org"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=RapidSSL RSA CA 2018
*  SSL certificate verify ok.
> GET /3/discover/movie?api_key=###&include_adult=false&include_video=false&vote_average.gte=7&with_release_type=3&release_date.gte=2001-01-01&release_date.lte=2001-12-31 HTTP/1.1
> Host: api.themoviedb.org
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After
< Cache-Control: public, max-age=21600
< Content-Type: application/json;charset=utf-8
< Date: Wed, 15 May 2019 15:17:36 GMT
< ETag: 350035841e1182bf4389c52752d8bd0d
< Server: openresty
< Vary: Accept-Encoding
< Content-Length: 12939
< Connection: keep-alive
<
* Connection #0 to host api.themoviedb.org left intact

Response

{
  "page": 1,
  "total_results": 679,
  "total_pages": 34,
  "results": [
    {
      "vote_count": 13719,
      "id": 671,
      "video": false,
      "vote_average": 7.8,
      "title": "Harry Potter and the Philosopher's Stone",
      "popularity": 50.91,
      "poster_path": "/dCtFvscYcXQKTNvyyaQr2g2UacJ.jpg",
      "original_language": "en",
      "original_title": "Harry Potter and the Philosopher's Stone",
      "genre_ids": [
        12,
        14,
        10751
      ],
      "backdrop_path": "/hziiv14OpD73u9gAak4XDDfBKa2.jpg",
      "adult": false,
      "overview": "Harry Potter has lived under the stairs at his aunt and uncle's house his whole life. But on his 11th birthday, he learns he's a powerful wizard -- with a place waiting for him at the Hogwarts School of Witchcraft and Wizardry. As he learns to harness his newfound powers with the help of the school's kindly headmaster, Harry uncovers the truth about his parents' deaths -- and about the villain who's to blame.",
      "release_date": "2001-11-16"
    },
    {
      "vote_count": 14288,
      "id": 120,
      "video": false,
      "vote_average": 8.3,
      "title": "The Lord of the Rings: The Fellowship of the Ring",
      "popularity": 45.747,
      "poster_path": "/56zTpe2xvaA4alU51sRWPoKPYZy.jpg",
      "original_language": "en",
      "original_title": "The Lord of the Rings: The Fellowship of the Ring",
      "genre_ids": [
        12,
        14,
        28
      ],
      "backdrop_path": "/pIUvQ9Ed35wlWhY2oU6OmwEsmzG.jpg",
      "adult": false,
      "overview": "Young hobbit Frodo Baggins, after inheriting a mysterious ring from his uncle Bilbo, must leave his home in order to keep it from falling into the hands of its evil creator. Along the way, a fellowship is formed to protect the ringbearer and make sure that the ring arrives at its final destination: Mt. Doom, the only place where it can be destroyed.",
      "release_date": "2001-12-18"
    },
    {
      "vote_count": 7298,
      "id": 129,
      "video": false,
      "vote_average": 8.5,
      "title": "Spirited Away",
      "popularity": 33.405,
      "poster_path": "/oRvMaJOmapypFUcQqpgHMZA6qL9.jpg",
      "original_language": "ja",
      "original_title": "千と千尋の神隠し",
      "genre_ids": [
        16,
        10751,
        14
      ],
      "backdrop_path": "/mnpRKVSXBX6jb56nabvmGKA0Wig.jpg",
      "adult": false,
      "overview": "A young girl, Chihiro, becomes trapped in a strange new world of spirits. When her parents undergo a mysterious transformation, she must call upon the courage she never knew she had to free her family.",
      "release_date": "2001-07-20"
    },
    ...
  ]
}

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión