I know that the return obj is limited to 20 but is it possible to lessen it to 3 or 5 of the latest movies? This call will be used on the home page and 20 seems to many as I will be outputting tv-shows as well.
Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.
Want to rate or add this item to a list?
Not a member?
Odpowiedź użytkownika Travis Bell
19 listopada 2015 o godz. 10:40AM
Hi _kram2803,
No, it is not possible to limit the results. With gzip the difference is going to be very small. The popular movie method is already only ~5.7KB gzipped, so I don't think this is much of a concern ;)
Odpowiedź użytkownika _kram2803
19 listopada 2015 o godz. 2:33PM
I just meant in UI perspective showing all 20 movies isn't really necessary for the homepage well at least in my case though. Say like the themoviedb home page its only showing 3 latest/upcoming movies then half is about tv shows.
Odpowiedź użytkownika Travis Bell
19 listopada 2015 o godz. 3:24PM
The
results
field is just an array, if you only want the first n items, just grab them from the array 😉