Поддержка 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 отправить своё сообщение
(стрелка вправо) следующая страница
(стрелка влево) предыдущая страница

Параметры

Хотите поставить оценку или добавить в список?

Войти