You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When we get search results, or get the watchlist/favorites, the response we get back, and the
MovieResults
struct we decode into has properties forpage
,per_page
, andtotal 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 thetotal_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.The text was updated successfully, but these errors were encountered: