Add podcasts feature #1

Merged
maks merged 4 commits from feature/podcasts into master 2026-04-24 14:07:45 +02:00
Owner

Summary

  • New /podcasts page (peer of /stations) with iTunes search + RSS subscribe
  • Podcast detail page: sort / filter / search episodes, mark played, refresh, similar shows
  • Range-aware stream proxy with per-hop SSRF validation (safe_external_request gains a headers= param for Range passthrough)
  • Episodes integrate with the existing player via episodeToTrack; queue / action-sheet all work
  • LyricsDisplay shows the episode description while a podcast is playing
  • Maximized player / now-playing / action-sheet "album" links route to /podcasts/{id}
  • Design doc committed as PODCASTS_PLAN.md

Test plan

  • make pre-commit (168 backend tests + 83 vitest pass locally)
  • Alembic: fresh DB upgrades cleanly through 013_add_podcasts
  • Subscribe via iTunes search and via raw RSS URL
  • Play episode end-to-end: scrubbing (Range), auto mark-played on finish
  • Mark / unmark from action sheet
  • Filter: all / unplayed / played, search q, sort newest / oldest
  • Similar shows rail renders with ≥5 entries for a popular feed
  • Restart backend: subscriptions persist

🤖 Generated with Claude Code

## Summary - New `/podcasts` page (peer of `/stations`) with iTunes search + RSS subscribe - Podcast detail page: sort / filter / search episodes, mark played, refresh, similar shows - Range-aware stream proxy with per-hop SSRF validation (`safe_external_request` gains a `headers=` param for Range passthrough) - Episodes integrate with the existing player via `episodeToTrack`; queue / action-sheet all work - `LyricsDisplay` shows the episode description while a podcast is playing - Maximized player / now-playing / action-sheet "album" links route to `/podcasts/{id}` - Design doc committed as `PODCASTS_PLAN.md` ## Test plan - [ ] `make pre-commit` (168 backend tests + 83 vitest pass locally) - [ ] Alembic: fresh DB upgrades cleanly through `013_add_podcasts` - [ ] Subscribe via iTunes search and via raw RSS URL - [ ] Play episode end-to-end: scrubbing (Range), auto mark-played on finish - [ ] Mark / unmark from action sheet - [ ] Filter: all / unplayed / played, search `q`, sort newest / oldest - [ ] Similar shows rail renders with ≥5 entries for a popular feed - [ ] Restart backend: subscriptions persist 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Backlog of ~48 PR-sized improvement items across observability, testing,
security, a11y, maintainability, performance, UX, and docs. The loop
procedure in ralph-prompt.md picks one item per iteration, verifies with
make pre-commit, and commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add podcasts feature
Some checks failed
CI / Backend (lint + type-check + test) (pull_request) Failing after 40s
CI / Frontend (lint + check + test) (pull_request) Has been cancelled
e3230cce0e
First-class /podcasts page as a peer of /stations: iTunes-backed search,
RSS subscribe, episode list with sort/filter/played state, similar-show
recommendations, and Range-aware audio stream proxy with per-hop SSRF
validation via safe_external_request. Episodes flow through the existing
player via episodeToTrack; TrackActionSheet gains per-podcast actions;
LyricsDisplay shows the episode description in place of lyrics while a
podcast is playing; "album" links on maximized player route back to the
podcast detail page.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop unused unittest.mock.patch import in podcast feed tests
Some checks failed
CI / Backend (lint + type-check + test) (pull_request) Failing after 41s
CI / Frontend (lint + check + test) (pull_request) Successful in 2m58s
33638e8886
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Format podcast files with ruff and harden local pre-commit
All checks were successful
CI / Backend (lint + type-check + test) (pull_request) Successful in 1m40s
CI / Frontend (lint + check + test) (pull_request) Successful in 3m1s
681d20d5f2
pre-commit-hooks run via git ls-files, which skips untracked files —
so newly-added podcast files were silently not ruff-formatted when I
ran make pre-commit before committing. CI then caught three files.

Mirror CI in the Makefile pre-commit target: run ruff check, ruff format
--check, mypy, and svelte-check against the whole tree (not filtered by
git ls-files), so this class of slip-through is impossible going forward.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
maks merged commit af47c9adc7 into master 2026-04-24 14:07:45 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
maks/sonus!1
No description provided.