after search around the forum, I suppose the total results number is set to 20 per page, but in some queries, like discover/movie, it's not always the case, some times, the first page returns only 19 results, sometimes 9 results, but the second page returns always 20 results. I have to force query starting at page 2 to avoid this variation.
is this a bug ? or it's intentional ? can I force the page returns always 20 results ? (in case their are more than 1 page)
thanks a lot
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط Travis Bell
در تاریخ مارس 26, 2014 ساعت 11:25 ق.ض
A few things to mention so I can get a clearer picture here:
پاسخ توسط gitawego
در تاریخ مارس 26, 2014 ساعت 11:31 ق.ض
when i check the second page, there are always results, and the results length is 20. but the first page is not. for example:
returns only 19 results, but
returns 20 results
returns only 9 results, but
returns 20 results.
پاسخ توسط Travis Bell
در تاریخ مارس 26, 2014 ساعت 11:47 ق.ض
Ya, this is a combination of a few things that I'm aware. I've created a new ticket to look at this in the future.
Easy fix for you should be to trust the
total_pages
field, ignore the number of items being returned in results array.پاسخ توسط gitawego
در تاریخ مارس 26, 2014 ساعت 11:50 ق.ض
thanks for your quick reply. much appreciate your help ^