Hi,
I noticed an issue with the Multi search endpoint: https://api.themoviedb.org/3/search/multi
It has a poster_path in the response object, but it's always null. When checking the Person search, the image can be found under profile_path instead of poster_path.
I was wondering if the backend can fix that by redirecting the Person profile_path as a poster_path in the Multi endpoint.
Thank you.
Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.
Хотите поставить оценку или добавить в список?
Нет аккаунта?
Ответ от Travis Bell
, 26 января 2024 в 11:01
Hi @gustavopeq, no, we cannot make a change like this.
Every media object returned across all of the many different endpoints are the same. Whether it's search, lists, popular, or trending, everything is consistent per media type.
You'll have to check which media type it is you're dealing with and template out accordingly. Note the
media_type
field that is returned so you can make that decision.Cheers.
Ответ от gustavopeq
, 26 января 2024 в 17:39
Understood... So when using this Multi endpoint, if I need to display the Person's profile picture, it's expected that I do an extra API call by the Person ID, to be able to get the profile_path right? Thanks @travisbell
Ответ от Travis Bell
, 26 января 2024 в 18:06
No. The
profile_path
field is returned as part of the object. Here's the response for a search of "Brad Pitt", notice the first response has aprofile_path
fieldRequest
Response
Ответ от gustavopeq
, 26 января 2024 в 18:22
Ohhh, so it does comes with the profile_path when the media_type is "person" I was using "Response 200 body" in https://developer.themoviedb.org/reference/search-multi , and it doesn't list the profile_path there, so I thought it didn't exist at all. That makes more sense... Thanks a lot @travisbell