Commit Graph
31 Commits
Author SHA1 Message Date
sanapachandClaude Opus 5.5 42ecc310fc End a sizeless episode stream where it ends when only the feed knew its length
A stream without a file size whose decoder cannot measure its duration
only has the feed's itunes:duration, which is often longer than the
audio. Treat that duration as a hint: a clean close past 80 % of it is
the end. A duration the decoder measured keeps the strict completion
window. The interrupted message for a stream that cannot seek now says
to start over or mark the episode played instead of "press play".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:11:33 +02:00
sanapachandClaude Opus 5.5 2989747162 Stop broken episode streams instead of completing them
- The stream reader records whether the decoder stopped on a read error
  and whether the server announced the file size. An episode whose
  connection was lost (stall, expired URL) or whose sizeless stream
  closed early is no longer completed at its full duration: the last
  position is saved, playback stops on the episode and the queue does
  not move on (playback::played_to_the_end).
- Streams are cancelled by the player's source generation: a superseded
  start stops connecting or reading up to its resume offset, and a read
  blocked inside the audio callback returns within 100 ms instead of up
  to 30 s. The player no longer reports the end of a superseded source.
- A pause or resume pressed while an episode connects is applied when
  its source arrives (Controller::expect_source).
- Seeks report their result (PlayerEvent::Seeked); an episode's seek is
  saved only when the audio moved, and seeks while connecting or in a
  stream without Range support are refused with a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:47:41 +02:00
sanapachandClaude Opus 5.5 79372e00fc Sync podcast state with devices on protocol v4
This client now announces device-sync protocol 4. Podcast operations
are applied to the podcast store, kept in the log and relayed; those
that arrive before the store opens wait in sync_podcast_pending.
Snapshots carry the podcast sections, bounded by the shared limits and
by the line budget of each message, and are merged after the operations.
Operations, snapshot sections and playback state that need v4 are only
sent to peers that reported v4. Periodic progress checkpoints are
coalesced in the log, and the Podcasts tab reloads after changes from
other devices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:54:16 +02:00
sanapachandClaude Opus 5.5 9321e82335 Play podcast episodes from the queue and save their progress
Episodes stream from the publisher through the prototype's bounded HTTP
Range reader (ported, URL queries redacted from errors). The audio URL and
resume position come from the store at play time; a 4xx on the audio URL
refreshes the feed once and retries with the address it now lists, and a
stream that cannot seek refuses to start at a saved position instead of
playing from the wrong place. Prepared sources reach the audio thread
with the player's source generation, so a slow stream never replaces a
newer start or stop, and with their start offset for position reporting.

Progress follows the FRID contract through one ordered writer thread:
start_session or restart on start, checkpoints every 20 s and on pause,
explicit seeks, complete_session near the end or at end of stream, and a
final save with the last seen position on stop, track change, handoff
and exit. A superseded session stops checkpointing until the next
explicit action; listening sessions are recorded at pause, completion
and end. Enter on an episode plays it after the current item, b starts
it over, a/A queue it, and mark played goes through the same writer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:28:36 +02:00
sanapachandClaude Opus 5.5 7583afaeba Box large AppEvent payloads after TrackItem grew
furumi-library 0.3.0 adds TrackItem.podcast, which makes TrackItem a few
hundred bytes larger. Box the track-info result and the federation status
in AppEvent so the event enum stays small (and clippy's
large_enum_variant does not fire on it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:00:36 +02:00
sanapachandClaude Opus 5.5 99c4d05dec Replace the Podcasts placeholder with subscriptions, seasons and episodes
The tab opens the FRID podcast store (podcasts.sqlite3, migrating a
prototype database in place; newer or foreign files are reported and left
unchanged) off the UI thread and shows subscriptions with unplayed counts
and check status, podcast -> seasons -> episodes navigation, and episodes
with saved position, played state, duration and date. Episode search,
played filter and order run as paged store queries with request sequence
numbers. Adding a feed, checking one or all feeds, marking played and
unsubscribing (with a confirmation that progress is kept) go through
Effect/AppEvent; a scheduler refreshes due feeds in the background.

New actions are bound in the podcasts keymap context and listed in a
Podcasts help section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:58:37 +02:00
Aleksandr Bogomiakov 2253ec7d91 Added simple status visual 2026-11-15 23:48:33 +00:00
Aleksandr Bogomiakov 9155bb9e00 Fixed release fed search regression 2026-10-09 15:34:20 +01:00
ab 532d6ee1e9 Integrate shared playback coordination and release 0.3.1 2026-09-10 17:07:41 +03:00
ab 32c976beb8 Added self updater 2026-09-07 12:36:48 +03:00
Aleksandr Bogomiakov 079d87a831 Merge local and federated similarity results 2026-08-10 20:51:21 +01:00
Aleksandr Bogomiakov 03f74cc91e Add federated music similarity search 2026-08-10 00:22:20 +01:00
Aleksandr Bogomiakov f73e3e7b95 Added nix files. revorked queue append, added library migration. 2026-08-02 00:40:50 +01:00
Ultradesu 1c721b68f5 Added JAM feature 2026-07-28 18:35:59 +01:00
Ultradesu 28189bae95 Added playback history window 2026-07-27 23:37:46 +01:00
Ultradesu ada18a4583 Reworked statistics 2026-07-26 01:41:16 +03:00
Ultradesu 17eb6a4fee Reworked statistics 2026-07-26 00:45:53 +03:00
Ultradesu f80e10e6ad Improved fiters. reworked Trak wrapper. 2026-07-25 23:57:03 +03:00
Ultradesu c45f2e700b Reworked library. Added local, my, fed traks overview. 2026-07-25 23:24:49 +03:00
Ultradesu 788bc2e01f Added network catalog slices 2026-07-25 22:40:27 +03:00
Ultradesu 38e3eb5a12 Added streaming. Improved UI 2026-07-25 01:23:29 +03:00
Ultradesu 9352b493a1 Connected Devices: added remote control 2026-07-24 04:11:01 +03:00
Ultradesu e08eb71ab7 Connected Devices: fixed UI settings. fixed pairing protocol 2026-07-24 02:21:24 +03:00
Ultradesu adbb76b031 Connected Devices: Added sync feature 2026-07-24 00:54:27 +03:00
Ultradesu da5d2410ac fed fixes 2026-07-21 00:12:45 +03:00
Ultradesu 151e2cf337 Many UI fixes 2026-07-17 15:29:10 +03:00
Ultradesu ff97053156 Improved fed artist page 2026-07-17 01:43:09 +03:00
Ultradesu a723fcc18e Added fed artist page 2026-07-17 01:17:54 +03:00
Ultradesu b1f8f4cb01 init federation 2026-07-16 20:29:51 +03:00
Ultradesu 02a396c146 Added connected devices. Improved logging. UI fixes 2026-06-10 23:30:03 +01:00
Ultradesu 39b955b6e7 Init 2026-06-10 16:11:09 +01:00