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 댓글 (1 / 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 ;)

찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.

전체

s 검색 바 띄우기
p 프로필 메뉴 열기
esc 열린 창 닫기
? 키보드 단축키 창 열기

미디어 페이지

b 돌아가기
e 편집 페이지로 이동

TV 시즌 페이지

(우 화살표) 다음 시즌으로 가기
(좌 화살표) 이전 시즌으로 가기

TV 에피소드 페이지

(우 화살표) 다음 에피소드로 가기
(좌 화살표) 이전 에피소드로 가기

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

t 번역 선택 열기
ctrl+ s 항목 저장

토론 페이지

n 새 토론 만들기
w 보기 상태
p 공개/비공개 전환
c 열기/닫기 전환
a 활동 열기
r 댓글에 글쓰기
l 마지막 댓글로 가기
ctrl+ enter 회원님의 메세지 제출
(우 화살표) 다음 페이지
(좌 화살표) 이전 페이지

설정

이 항목을 평가하거나 목록에 추가할까요?

로그인