Skip to content

Fix Trakt watched sync for enforced pagination and extended=progress - #968

Open
twes33 wants to merge 1 commit into
nixgates:masterfrom
twes33:fix/trakt-watched-sync-pagination
Open

Fix Trakt watched sync for enforced pagination and extended=progress#968
twes33 wants to merge 1 commit into
nixgates:masterfrom
twes33:fix/trakt-watched-sync-pagination

Conversation

@twes33

@twes33 twes33 commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Trakt now enforces pagination on /sync/watched/{type} (previously a single request returned the full watched history) and no longer returns season/episode progress data under extended=full for shows — see trakt/trakt-api#775 for the announcement.

Fixes #967.

  • _sync_watched_movies and sync_watched_episodes now use get_all_pages_json (already the established pattern for sync/ratings and sync/playback) instead of a single get_json call, so watched history isn't silently truncated to the first page.
  • sync_watched_episodes now requests extended=progress instead of the deprecated extended=full, which is required to get season/episode data back under Trakt's new behavior.

Test plan

  • Manually reproduced against a real Trakt account with a Kodi 21 (Omega) test install: before the fix, Next Up stayed empty after the fix, watched episode state and Next Up populate correctly.

Trakt now enforces pagination on /sync/watched/{type} (previously a
single request returned the full history) and no longer returns
season/episode progress data under extended=full for shows.

Switch both sync_watched_episodes and _sync_watched_movies to
get_all_pages_json (already used elsewhere for sync/ratings and
sync/playback) and request extended=progress for the shows endpoint,
which is the only supported way to get season data back under
Trakt's new API behavior.

See trakt/trakt-api#775
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trakt data won’t sync to seren

1 participant