The Movie Database 支持

My app uses /search to search for TV show and movie information. However, the responses do not contain any of the following properties:

  • imdb_id {both movies and TV shows}
  • runtime {movies}
  • episode_runtime[0} (does anybody know what type of data is stored in this array?) || last_episode_to_air.runtime {TV shows}
  • number_of_seasons {TV shows}
  • number_of_episodes {TV shows}

I came across the 'append to response' section in the documentation, but none of the requests below append any information to the response. Does anybody know why? What am I doing wrong?

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=details

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=runtime,imdb_id

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=number_of_seasons,number_of_episodes,episode_runtime,last_episode_to_air

7 回复(第 1 页,共 1 页)

Jump to last post

@falez said:

My app uses /search to search for TV show and movie information. However, the responses do not contain any of the following properties:

  • imdb_id {both movies and TV shows}
  • runtime {movies}
  • episode_runtime[0} (does anybody know what type of data is stored in this array?) || last_episode_to_air.runtime {TV shows}
  • number_of_seasons {TV shows}
  • number_of_episodes {TV shows}

I came across the 'append to response' section in the documentation,
but none of the requests below append any information to the response. Does anybody know why? What am I doing wrong?

Does not work with Search.
Only with the Details method, using the Movie, TV Show or Person item ID.
See
https://developer.themoviedb.org/docs/append-to-response

append_to_response is an easy and efficient way to append extra requests to any top level namespace. The movie, TV show, TV season, TV episode and person detail methods all support a query parameter called append_to_response.

@ticao2 said:

Shucks! I guess I am forced to make 2 separate requests then :(

Thanks for the information.

@ticao2 said:

@falez said:

TV show details: response.episode_runtime[0}

Any idea what type of data this array contains? And in what format? So far, it has always returned an empty array for every TV show that I have searched for.

@falez said:

@falez said: > TV show details: response.episode_runtime[0}

Any idea what type of data this array contains?
And in what format?
So far, it has always returned an empty array for every TV show that I have searched for.

Many years ago, when TMDb was born, there was only the runtime value of a standard episode of a TV series.
In the past, when broadcast TV was the norm, this value was more respected by producers.
The runtime differences between episodes of a series were minimal.
There were laws determining how much advertising or commercial time the broadcasters could show per hour of programming.
If I remember correctly, some countries it was 12 minutes per hour and others it was 8 minutes per hour.

With the advent of Cable TV and Streaming, everything changed.
So users asked for a runtime field to be added with a specific value for each episode.
This field was added to the database about 2 years ago.
If this field is blank, it is because no user has added the value.
The format should be minutes.

@ticao2 said:

@falez said:

@falez said: > TV show details: response.episode_runtime[0}

Any idea what type of data this array contains?
And in what format?
So far, it has always returned an empty array for every TV show that I have searched for.

Many years ago, when TMDb was born, there was only the runtime value of a standard episode of a TV series.
In the past, when broadcast TV was the norm, this value was more respected by producers.
The runtime differences between episodes of a series were minimal.
There were laws determining how much advertising or commercial time the broadcasters could show per hour of programming.
If I remember correctly, some countries it was 12 minutes per hour and others it was 8 minutes per hour.

With the advent of Cable TV and Streaming, everything changed.
So users asked for a runtime field to be added with a specific value for each episode.
This field was added to the database about 2 years ago.
If this field is blank, it is because no user has added the value.
The format should be minutes.

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

@falez said:

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

I think so. In minutes.
Of course, some user needs to add this data.

@ticao2 said:

@falez said:

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

I think so. In minutes.
Of course, some user needs to add this data.

Ah, I see. Thanks again for your help!!

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区