Klávesové zkratky
Rozšířené hledání
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.
Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.
Přihlásit se
Zaregistrovat se
Want to rate or add this item to a list?
Not a member?
Sign up and join the community
Odpověď od Travis Bell
17.11.2023 v 12:49 ODP.
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.Odpověď od omkumar1872
18.11.2023 v 1:29 DOP.
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?
Odpověď od Travis Bell
20.11.2023 v 11:04 DOP.
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.