rivenmedia / riven

Plex Debrid Rewrite (WIP)
GNU General Public License v3.0
167 stars 24 forks source link

Bugfix - Fetch all pages unless limit is set #437

Closed aamorin closed 1 week ago

aamorin commented 1 week ago

Pull Request Check List

Resolves: #issue-number-here

Description:

Riven is only fetching the first 10 items of any Trakt collections/lists/watchlist:

24-06-18 15:49:02 | 🎵 TRAKT     | trakt.run - New items fetched from Watchlist: 10
24-06-18 15:49:02 | 🎵 TRAKT     | trakt.run - New items fetched from User Lists: 10
24-06-18 15:49:02 | 🎵 TRAKT     | trakt.run - Total new items fetched: 20

Now it is fetching all of the items if params.limit is not set:

24-06-18 17:02:28 | 🎵 TRAKT     | trakt.run - New items fetched from Watchlist: 14
24-06-18 17:02:28 | 🎵 TRAKT     | trakt.run - New items fetched from User Lists: 25
24-06-18 17:02:28 | 🎵 TRAKT     | trakt.run - Total new items fetched: 39