You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let offline progress sync name the played file so the server applies its end-credits rule #5162
api-v2API v2 / Huma migration program (epic #135); long-running, stacked by phasebugSomething isn't workingpriority: P2Limited scope, workaround exists, or polish
#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.
api-v2API v2 / Huma migration program (epic #135); long-running, stacked by phasebugSomething isn't workingpriority: P2Limited scope, workaround exists, or polish
Activity