Podpora 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 odpovědí (na stránce 1 z 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 ;)

Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.

Globální

s zaměřit panel hledání
p otevřít nabídku profilu
esc zavřít otevřené okno
? otevřít okno klávesových zkratek

Na stránkách médií

b zpět (nebo na nadřazený záznam, pokud to jde)
e na stránku úprav

Na stránkách sezón

(šipka vpravo) na další sezónu
(šipka vlevo) na předchozí sezónu

Na stránkách epizod

(šipka vpravo) na další epizodu
(šipka vlevo) na předchozí epizodu

Na všech stránkách obrázků

a otevřít okno přidání obrázku

Na všech stránkách úprav

t otevřít výběr překladu
ctrl+ s odeslat formulář

Na stránkách diskusí

n vytvořit novou diskusi
w přepnout stav zhlédnutí
p přepnout veřejný a soukromý
c přepnout zavřít a otevřít
a otevřít aktivitu
r odpovědět na diskusi
l na poslední odpověď
ctrl+ enter odeslat zprávu
(šipka vpravo) další stránka
(šipka vlevo) předchozí stránka

Nastavení

Want to rate or add this item to a list?

Přihlásit se