fix(gpodder): update play state from live episode actions #203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/live-sync-play-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #193.
What
Episode actions uploaded through
POST /api/2/episodes/{user}.jsonnow also updateepisode_play_state, so listening progress in the UI keeps moving after the migration instead of freezing at that moment.PlayStateSyncServicelistens toEpisodeActionsUploadedEvent(which now carries the uploaded actions) after commit, in its own transaction. A failure there cannot turn a successful sync into an error for the client.playwith a position andnew. Adownloadordeleteleaves existing progress alone.OpodsyncMigrationService.derivePlayState, the same rules as the migration import. A stored state is only replaced by a newer timestamp.Feed and episode URLs of new rows are stored exactly as the client sent them, so they match the subscription's feed URL.
Verification
PlayStateSyncServiceTest(unit) and an integration test inPhase1IntegrationTestthat uploads actions over HTTP and checks the stored state.🤖 Generated with Claude Code