File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/src/main/java/com/battlelancer/seriesguide/traktapi Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import com.uwetrottmann.trakt5.services.Notes
1616import com.uwetrottmann.trakt5.services.Sync
1717import retrofit2.Call
1818import retrofit2.awaitResponse
19+ import timber.log.Timber
1920
2021/* *
2122 * Uses response classes inheriting from a Kotlin sealed interface.
@@ -74,6 +75,7 @@ object TraktTools4 {
7475 action = " get collected shows" ,
7576 reportIsNotVip = true // Should work even if not VIP
7677 ) { page ->
78+ // 1000 is the maximum limit according to https://github.com/trakt/trakt-api/discussions/681
7779 traktSync.collectionShows(page, 1000 , null )
7880 }
7981 }
@@ -113,6 +115,9 @@ object TraktTools4 {
113115 is TraktNonNullResponse .Success -> {
114116 allItems.addAll(response.data)
115117 totalPageCount = response.pageCount
118+ if (totalPageCount == null ) {
119+ Timber .w(" Page count header not found for '$action '" )
120+ }
116121 currentPage++
117122 }
118123
You can’t perform that action at this time.
0 commit comments