Axuda de The Movie Database

Hello everyone!

I'm encountering a small problem. Whenever I request details for a TV series (say, tv/285 for example - which is Waiting for God), the details for Pirates of the Caribbean: At World's End will also appear as they share the same id (285) but in the movies database of TMDB.

In my calls, I am also append credits in the request too.

Anyone experiencing the same issue?

Cheers, Ken

3 respostas (na páxina 1 de 1)

Jump to last post

Hi Ken,

It sounds like you're actually making 2 calls. Are you able to provide an verbose HTTP log that shows it doing this? Something like this example in cURL would work:

web:~ travisbell$ curl -v "http://api.themoviedb.org/3/tv/2710?api_key=###"
* Adding handle: conn: 0x7fac29004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fac29004000) send_pipe: 1, recv_pipe: 0
* About to connect() to api.themoviedb.org port 80 (#0)
*   Trying 23.21.98.69...
* Connected to api.themoviedb.org (23.21.98.69) port 80 (#0)
> GET /3/tv/2710?api_key=### HTTP/1.1
> User-Agent: curl/7.30.0
> Host: api.themoviedb.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Cache-Control: public, max-age=21600
< Content-Type: application/json;charset=utf-8
< Date: Fri, 15 Aug 2014 13:14:36 GMT
< ETag: "0983aa59a9d8a3f83f54732d71045517"
* Server nginx is not blacklisted
< Server: nginx
< Status: 200 OK
< Vary: Accept-Encoding
< X-Memc: HIT
< X-Memc-Age: 250
< X-Memc-Expires: 21350
< X-Memc-Key: d74e3f828d1ebdd7e15264844f75776e
< Content-Length: 2552
< Connection: keep-alive
<
* Connection #0 to host api.themoviedb.org left intact

{
  "backdrop_path": "/8x14rIBCJeVfcFwSKZwWDLNVtBB.jpg",
  "created_by": [
    {
      "id": 78597,
      "name": "Rob McElhenney",
      "profile_path": "/qo7by9RMVWdjGTuE8YKpZhoGdhQ.jpg"
    }
  ],
  "episode_run_time": [
    30,
    22
  ],
  "first_air_date": "2005-08-04",
  "genres": [
    {
      "id": 35,
      "name": "Comedy"
    }
  ],
  "homepage": "http://www.fxnetworks.com/shows/originals/sunny/",
  "id": 2710,
  "in_production": true,
  "languages": [
    "en"
  ],
  "last_air_date": "2013-11-06",
  "name": "It's Always Sunny in Philadelphia",
  "networks": [
    {
      "id": 88,
      "name": "FX"
    }
  ],
  "number_of_episodes": 104,
  "number_of_seasons": 9,
  "original_name": "It's Always Sunny in Philadelphia",
  "origin_country": [
    "US"
  ],
  "overview": "It's Always Sunny in Philadelphia is an American sitcom that premiered on FX on August 4, 2005. New episodes continue to air on FX, with reruns playing on Comedy Central, general broadcast syndication, and WGN America—the first cable-to-cable syndication deal for a sitcom. The show was created, developed, and produced by Rob McElhenney, Glenn Howerton, and Charlie Day, all of whom star in the show. The series follows the exploits of \"The Gang\", a group of self-centered friends who run Paddy's Pub, a relatively unsuccessful Irish bar in South Philadelphia, Pennsylvania. On March 28, 2013, FX renewed the show for a tenth season, and announced that the series will move to new sister network, FXX. The 9th season premiered on Wednesday, September 4, 2013 at 10pm.",
  "popularity": 0.191065952860943,
  "poster_path": "/jQ0U5LjdFStCeZdOJca9Zs90yAa.jpg",
  "seasons": [
    {
      "air_date": null,
      "id": 8795,
      "poster_path": "/rpeYUV6JRRSXg3jc5i6JHrr5Nry.jpg",
      "season_number": 0
    },
    {
      "air_date": "2005-08-04",
      "id": 8789,
      "poster_path": "/yc2gdu9IqWAMH41p8vRwh4GPrKy.jpg",
      "season_number": 1
    },
    {
      "air_date": "2006-06-29",
      "id": 8790,
      "poster_path": "/eKIQ4aEJ0AJ8ZTimHKTWhnWCBQt.jpg",
      "season_number": 2
    },
    {
      "air_date": "2007-09-13",
      "id": 8791,
      "poster_path": "/9oqvtF95nZUMYLZHfSeDofWkEuZ.jpg",
      "season_number": 3
    },
    {
      "air_date": "2008-09-18",
      "id": 8792,
      "poster_path": "/bTzGVPARDTjLkW5BQECRmHE5Dfq.jpg",
      "season_number": 4
    },
    {
      "air_date": "2009-09-17",
      "id": 8793,
      "poster_path": "/aeSe2WXwWpo4iYvTriEMhSbS3u2.jpg",
      "season_number": 5
    },
    {
      "air_date": "2010-09-16",
      "id": 8794,
      "poster_path": "/v1Xq4iFSFunamn68ENeDv6Mo4nk.jpg",
      "season_number": 6
    },
    {
      "air_date": "2011-09-15",
      "id": 8796,
      "poster_path": "/gs0GS9DjKu2OkYx6uTW678TiakO.jpg",
      "season_number": 7
    },
    {
      "air_date": "2012-10-11",
      "id": 8797,
      "poster_path": "/yIlnts4gOfhjnjhKLhbqTuv9D7l.jpg",
      "season_number": 8
    },
    {
      "air_date": "2013-09-04",
      "id": 8798,
      "poster_path": "/nLPn8z4ocEG6WfPiqrFGYBswdZN.jpg",
      "season_number": 9
    }
  ],
  "status": "Returning Series",
  "vote_average": 8.0,
  "vote_count": 1
}

Ooops! Sorry Travis - you're right! I accidentally left an array_merge() on my code which joined the two datasets together.

All good now, thanks for your work and help!

Cheers, Ken

No worries ;)

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión