ios-nd-networking icon indicating copy to clipboard operation
ios-nd-networking copied to clipboard

Lists won't show more than 20 movies

Open OwenLaRosa opened this issue 6 years ago • 0 comments

When we get search results, or get the watchlist/favorites, the response we get back, and the MovieResults struct we decode into has properties for page, per_page, and total pages. How many movie results do you get per page? According to this discussion, only 20: https://www.themoviedb.org/talk/587bea71c3a36846c300ff73

To handle watchlist/favorites lists with more than 20 movies, we need to download from multiple pages. We can specify the page using the page query parameter. And you can use the total_pages property in the response to know the number of pages to fetch. How to solve this is up to you: perhaps you download all the pages at once, or get a bit fancier and download the next page as the table scrolls to the bottom. In either case, users with more than 20 movies on their lists should be able to view all of them.

OwenLaRosa avatar Nov 09 '18 22:11 OwenLaRosa