hi, I'm pretty new to searching the DB via the api, I'm trying to search movies and sort by english, french & spanish. My query below without language works fine but I cannot get it to filter the above languages could some one please help?
standard query for english only (doesn't work?): url + "search/movie?api_key=" + API_KEY + "&query=" + nameToSearch + "&language=en&sort_by=popularity"
thanks
No trobeu una pel·lícula o una sèrie? Inicieu la sessió per a crear-la.
Desitgeu valorar o afegir aquest element a una llista?
No en sou membre?
Resposta per gordon7up
el 17 i de 2016 a les 5:12 P.M.
I should add that above query does return movies just in all languages where I specified EN only?
Resposta per Travis Bell
el 17 i de 2016 a les 7:09 P.M.
Hi gordon7up,
There is currently only 3 fields that would return a translated value in a search call depending on your specified language and those are
title
,overview
andposter_path
. A quick example of this would be:You'll notice that the 3 fields that I mentioned above change according to the specified language.
P.S. there are no sorting options for search.
Cheers.
Resposta per gordon7up
el 18 i de 2016 a les 5:15 A.M.
Thanks Travis, What I'm trying to do is filter out all movies not listed under the specified language so if user searches say three characters for example "tre" only english films beginning with these letters are displayed? how would I do this? Is my above approach correct.
Thanks again. Gordon