M3: Podcasts #14

Merged
Mett-mit-Zwiebel merged 2 commits from feat/m3-podcasts into main 2026-10-28 23:49:30 +01:00
Mett-mit-Zwiebel commented 2026-10-28 23:40:06 +01:00 (Migrated from github.com)

Implements M3: Podcasts. Closes Mett-mit-Zwiebel/cushion#12.

What's new

  • Podcast libraries appear in the library switcher. For them the sidebar shows Home and Podcasts, and switching libraries from a detail page goes to Home.
  • Podcasts list: sorts by title, author, date added and number of episodes; filters by genre, tag or language.
  • Podcast page: description and genres, then episodes newest first, each with date, season/episode number, show notes (HTML stripped, expandable), progress, play and mark played / not played. A filter shows all, unplayed, in-progress or played episodes, and "Play latest" picks the newest unplayed episode.
  • Episode playback: uses /api/items/:id/play/:episodeId. The player shows the episode under the podcast's name and links back to the podcast.
  • Progress per episode: Rust and the UI key progress by item/episode everywhere (progress map, 15-second sync, socket events, cached pages), so episodes never overwrite each other or the podcast item.
  • Home: Continue Listening, Newest Episodes, Recently Added and Listen Again shelves for podcast libraries.
  • Search: podcast libraries search podcasts and episodes.
  • Also: books can now be marked finished or not finished from their page.

Testing

  • 67 Rust tests:
    • 3 new live tests against a real server: podcast page order, durations and show notes; episode and podcast shelves; episode search; an episode session (episode ID, title under the podcast's name) with progress per episode, then marking it played and not played.
    • New unit tests for the episode and podcast shelves and for episode progress keys.
  • Test server: now creates a "Test Cast" podcast library with three dated episodes.
  • Manual run of the app on Xvfb:
    • switch to Podcasts, check the Home shelves, open the podcast page, play episode 2, mark episode 1 played
    • confirmed on the server that episode 2's progress synced (14.4 s) and episode 1 is finished

Generated by Claude Code

Implements **M3: Podcasts**. Closes Mett-mit-Zwiebel/cushion#12. ## What's new - **Podcast libraries** appear in the library switcher. For them the sidebar shows Home and Podcasts, and switching libraries from a detail page goes to Home. - **Podcasts list:** sorts by title, author, date added and number of episodes; filters by genre, tag or language. - **Podcast page:** description and genres, then episodes newest first, each with date, season/episode number, show notes (HTML stripped, expandable), progress, play and **mark played / not played**. A filter shows all, unplayed, in-progress or played episodes, and "Play latest" picks the newest unplayed episode. - **Episode playback:** uses `/api/items/:id/play/:episodeId`. The player shows the episode under the podcast's name and links back to the podcast. - **Progress per episode:** Rust and the UI key progress by `item/episode` everywhere (progress map, 15-second sync, socket events, cached pages), so episodes never overwrite each other or the podcast item. - **Home:** Continue Listening, Newest Episodes, Recently Added and Listen Again shelves for podcast libraries. - **Search:** podcast libraries search podcasts and episodes. - **Also:** books can now be marked finished or not finished from their page. ## Testing - **67 Rust tests:** - 3 new live tests against a real server: podcast page order, durations and show notes; episode and podcast shelves; episode search; an episode session (episode ID, title under the podcast's name) with progress per episode, then marking it played and not played. - New unit tests for the episode and podcast shelves and for episode progress keys. - **Test server:** now creates a "Test Cast" podcast library with three dated episodes. - **Manual run of the app on Xvfb:** - switch to Podcasts, check the Home shelves, open the podcast page, play episode 2, mark episode 1 played - confirmed on the server that episode 2's progress synced (14.4 s) and episode 1 is finished --- _Generated by [Claude Code](https://claude.ai/code/session_019KvpR4Tt9MGgJ3yC3DVqPq)_
Sign in to join this conversation.
No description provided.