Skip to content

Let offline progress sync name the played file so the server applies its end-credits rule #5162

Open

Description

@Quick104

What changes

#5133 marks a streamed movie or episode watched once playback reaches the played file's end credits. The Apple and Android apps now bring offline downloads close to that: when a download is stopped in its end credits, the app queues its progress at the full duration, which the server's percentage rule stores as watched (Silo-Server/silo-apple#1256, Silo-Server/silo-android#1038).

That route leaves three gaps, because POST /api/v2/sync/progress doesn't say which file played:

  • "Mark watched at" set to 100%: the percentage check is strict, so a full-duration sample isn't watched at 100%. Streaming counts the credits at any setting.
  • Downloads made before those app changes stored no credits start, so they keep the percentage rule.
  • Two copies of the rule: each app copies the server's end-credits window (markers.CreditsLimits.EndCreditsStart). A server change to the window, or to which files count as episodes, doesn't reach them. The apps also can't see an episode number parsed from a file name, which the server uses.

What to do

  • Add an optional media_file_id to ProgressSyncItem, and advertise it in the progress capabilities. Older servers reject unknown fields, so the apps need the capability before they send it.
  • When it's present and the file belongs to the item, resolve the thresholds with that file's end credits, as playbackThresholdsForFile does for streaming. Compare against the file's own duration, since an offline player's duration can differ slightly.
  • The apps then send the real position and the file id when the server supports it, and stop rewriting the position.

Pairs with

#5133, Silo-Server/silo-apple#1256, Silo-Server/silo-android#1038

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; not yet verified by a person

Activity

  1. added
    api-v2
    bug
    priority: P2
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-v2bugpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions