Skip to content

fix(trakt): don't count episode plays as show rewatches - #217

Open
couchcoder39 wants to merge 1 commit into
TimilsinaBimal:mainfrom
couchcoder39:fix/trakt-show-plays
Open

couchcoder39 wants to merge 1 commit into
TimilsinaBimal:mainfrom
couchcoder39:fix/trakt-show-plays

Conversation

@couchcoder39

Copy link
Copy Markdown

Fixes #216.

What changed

Trakt shows get watch_count=1 instead of the episode-summed plays, so the unrated rewatch-as-loved proxy no longer fires after two episodes. Same approach as the Simkl source. Movies keep their real plays.

Notes

  • Shows rated 9+ are still loved, 7–8 still liked.
  • No PROFILE_SCORING_VERSION bump: the change is in the fetched history, so it takes effect with the next history fetch from Trakt; a version bump alone would rebuild from the cached library with the old counts.
  • Changelog entry under Unreleased. If fix(profile): weigh external ratings below 7 by their rating #214 is merged first, that's a one-line conflict in the same section, I'll rebase.

Tests

  • New tests/test_trakt_show_plays.py: a Trakt show with 12 episode plays lands in watched, a movie with 2 plays stays loved. Fails on main, passes here.
  • Full suite: 222 passed. Pre-commit clean on the changed files.

A show's plays on /users/me/watched/shows sum the plays of its
episodes, so any unrated show with two episodes watched passed the
watch_count >= 2 rewatch-as-loved proxy and weighed as loved. Simkl
already leaves series at 1 for the same reason; do the same for Trakt.

Fixes TimilsinaBimal#216
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

@couchcoder39 is attempting to deploy a commit to the Bimal Timilsina's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

[BUG] Trakt shows count as loved after two watched episodes

1 participant