Tastatūras īsinājumtaustiņi
Izvērstā meklēšana
I tried using https://api.themoviedb.org/3/search/multi?query=${query}&include_adult=true&include_video=false&include_media_type=true¬_include_media_type=person&page=1&api_key=${API_KEY}
but it doesn't work.
Hi @omkumar1872,
Unfortunately, it is not possible to exclude media types from multi search.
If you are wanting to skip people results, you can inspect the media_type field of each result and skip whatever types you don't want to display.
media_type
But the problem with that - For some page the number of results will be inconsistent like for page 1 there would be 15 results for another page it maybe 12 for some it maybe also 2 or 0 results.
So do you have any idea to deal with this?
Best I can suggest is to make additional page requests if you want to show more data when you detect counts under a certain threshold.
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Pieteikties
Reģistrēties
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Reģistrējies un pievienojies kopienai
Atbilde no Travis Bell
on novembris 17, 2023 at 12:49 PM
Hi @omkumar1872,
Unfortunately, it is not possible to exclude media types from multi search.
If you are wanting to skip people results, you can inspect the
media_type
field of each result and skip whatever types you don't want to display.Atbilde no omkumar1872
on novembris 18, 2023 at 1:29 AM
But the problem with that - For some page the number of results will be inconsistent like for page 1 there would be 15 results for another page it maybe 12 for some it maybe also 2 or 0 results.
So do you have any idea to deal with this?
Atbilde no Travis Bell
on novembris 20, 2023 at 11:04 AM
Best I can suggest is to make additional page requests if you want to show more data when you detect counts under a certain threshold.