Skip to content

fix: downloaded videos open instantly with silent background refresh - #15

Merged
ghostcoder42 merged 1 commit into
mainfrom
fix/watch-offline-first
Sep 27, 2026
Merged

ghostcoder42 merged 1 commit into
mainfrom
fix/watch-offline-first

Conversation

@ghostcoder42

Copy link
Copy Markdown
Owner

The watch screen gated rendering on the network detail query, so a downloaded video sat behind a full-screen spinner (while its player — created from the local file — was already autoplaying audio under it), and the offline fallback only kicked in after the fetch had fully failed (up to ~48s on a dead network).

  • Render from local download metadata immediately; the query keeps refreshing silently and swaps fresh metadata in without touching the player (local uri stays the source, so playback never interrupts).
  • fetchPage now throws HttpStatusError carrying the status; a 404/410 watch page notifies once ("video removed") but keeps the screen open and playable. Other network failures stay silent when offline data is shown; without a download the error screen shows the specific removed message.
  • videoRemoved strings for all five locales + a fetchPage status test.

The watch screen gated rendering on the network detail query, so a
downloaded video sat behind a full-screen spinner (while its player —
created from the local file — was already autoplaying audio under it),
and the offline fallback only kicked in after the fetch had fully
failed (up to ~48s on a dead network).

- Render from local download metadata immediately; the query keeps
  refreshing silently and swaps fresh metadata in without touching the
  player (local uri stays the source, so playback never interrupts).
- fetchPage now throws HttpStatusError carrying the status; a 404/410
  watch page notifies once ("video removed") but keeps the screen
  open and playable. Other network failures stay silent when offline
  data is shown; without a download the error screen shows the
  specific removed message.
- videoRemoved strings for all five locales + a fetchPage status test.
@ghostcoder42
ghostcoder42 merged commit b2b08f3 into main Sep 27, 2026
1 check passed
@ghostcoder42
ghostcoder42 deleted the fix/watch-offline-first branch September 27, 2026 22:19
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.

1 participant