Hi,
I have a problem about using TMDB's API and I'd like to know if anyone can help me out.
I use the following function to retreive the cast of a particular movie: the problem is that some movies have a HUGE cast, 50 or 60 people, and it's pretty useless to me, and once they are grabbed from TMDB there is no way to order them with "relevance" priority but only by name. For this reason I can't just crop the list after is retrived and stored because I would select only the first of them in alphabet order.
public function getMovieCast($id) { return $this->_makeCall('movie/'.$id.'/casts'); }
Is there any way to limit the number of people to retreive from TMDB in this function when asking for the cast of a particular movie? If I could edit this function just to retrieve 10/12 actors it would be more that enough for my need.
Thanks in advance to everyone!
Best regards
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ أبريل 1, 2014 في 5:32 مساءا
Hi CANALE83,
There is a
order
field which is what you should be using to order the cast credits responses by. This would be your relevancy.No, there is not.
Best you can do is pull the whole array down and just grab the first 10 items. It doesn't really matter what else is returned, does it?
رد بواسطة CANALE83
بتاريخ أبريل 1, 2014 في 6:06 مساءا
Thanks!
Very helpful tips!