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 ;)

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区