forked from Furumi/furumi-web
Document finding and subscribing to shared podcasts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
59d94203db
commit
88af30754f
4 files changed
+72
-2
No files matched your search
+13
-1
@@ -1,7 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
## v0.15.0 — 2026-11-19
|
||||
|
||||
- Find podcasts in the federated search: cards shared by federation members
|
||||
appear in the search results as **Podcasts**, typed apart from music
|
||||
(`federation.podcast` events, `"type": "podcast"`; music events are
|
||||
unchanged and now carry `"type": "music"`), with **Already subscribed**
|
||||
when you follow the podcast, also under another feed address. A card
|
||||
opens with its metadata and the seasons and episodes read from the feed
|
||||
(`POST /api/podcasts/discovery/preview`), and **Subscribe**
|
||||
(`POST /api/podcasts/discovery/subscribe`) creates your own private
|
||||
subscription from the card's original feed address with the card's
|
||||
podcast id; the publishing member is never contacted. Card texts and
|
||||
links are untrusted: shown as text, links and artwork only as checked
|
||||
`http(s)` (artwork `https`) addresses.
|
||||
- Share a podcast in the federation: a **Share in the federation** toggle on
|
||||
the podcast page publishes a public card of the podcast (title, author,
|
||||
description, artwork, feed URL, episode count; never progress, history,
|
||||
|
||||
@@ -23,7 +23,9 @@ the Furumi federated network.
|
||||
- **Follow podcasts.** Subscribe to RSS feeds, browse seasons and episodes, and
|
||||
pick up where you stopped, also on your other Furumi players. Episodes stream
|
||||
from the publisher and are never imported into the library; subscriptions
|
||||
and listening progress stay private to your own devices.
|
||||
and listening progress stay private to your own devices. Share a podcast
|
||||
in the federation on purpose, and find podcasts others shared in the
|
||||
federated search.
|
||||
- **Discover more.** Find similar tracks and connect Last.fm for scrobbling.
|
||||
- **Connect your players.** Pair trusted Furumi devices to synchronize playlists,
|
||||
likes, playback state, and playback controls.
|
||||
|
||||
@@ -166,6 +166,34 @@ discovery disabled" and everything else keeps working. The admin
|
||||
federation status (`/admin/v2/api/federation`) reports `podcast_discovery`
|
||||
and `podcast_discovery_peers`.
|
||||
|
||||
### Finding podcasts in the federation
|
||||
|
||||
The search box searches the federation too. Podcasts that members shared
|
||||
appear under **Federation → Podcasts**, marked **Podcast** and kept apart
|
||||
from music; podcasts you already follow are marked **Already subscribed**
|
||||
(also when you follow the same feed under an older or newer address).
|
||||
|
||||
- Opening a card shows its title, author, description, artwork and the feed
|
||||
URL, then loads the seasons and episodes from the feed itself through the
|
||||
server. Nothing is stored until you subscribe.
|
||||
- **Subscribe** adds your own private subscription: the server downloads the
|
||||
feed from the card's address, as for **Add RSS**, and you can then play,
|
||||
share or unsubscribe it like any other. The member who published the card
|
||||
is never contacted and does not need to stay online; their card is only a
|
||||
pointer to the public feed. The subscription keeps the podcast's identity,
|
||||
so your other Furumi players recognise it, and nobody else sees it.
|
||||
- Card texts and links come from other members and may be wrong. The
|
||||
player shows them as plain text, opens only web links, and loads artwork
|
||||
directly from its host only over HTTPS (like the artwork of subscribed
|
||||
podcasts). Only the original feed address of a card is used: an address a
|
||||
member claims the feed moved to is ignored unless the feed itself
|
||||
redirects there.
|
||||
- Search results show only cards; no member's subscriptions, progress or
|
||||
account are ever visible. A card disappears from search results within
|
||||
12 hours after it is revoked.
|
||||
- Podcast search needs federation on this server. When public discovery is
|
||||
off or unavailable, the search shows music only.
|
||||
|
||||
### Podcast feeds and audio
|
||||
|
||||
The `podcast_refresh` job (every five minutes, listed under Jobs) checks the
|
||||
|
||||
@@ -253,6 +253,34 @@ only while the overlay runs.
|
||||
warnings is shared only with `confirm` naming exactly its current URLs
|
||||
(otherwise 409 `needs_confirmation` with the warnings, nothing written).
|
||||
|
||||
Search and subscription from a card (`src/podcasts/search.rs`):
|
||||
|
||||
- `GET /api/player/federation/search/events` starts `PodcastDht::search`
|
||||
(`Federation::spawn_podcast_search`, at most 20 hits, 20 s) next to the
|
||||
music DHT search. Music events stream first and are unchanged
|
||||
(`federation.track|artist|release`); every event now carries `"type":
|
||||
"music"` or `"type": "podcast"`. Podcast hits follow as
|
||||
`federation.podcast` events with a `PodcastHitView` entity: the card's
|
||||
public fields, the origin `feed_url` (never `claimed_feed_urls`),
|
||||
`publisher_count`, `rank` and `exact_match` from `merge_search_results`
|
||||
with the music items, and the searching account's `subscribed` /
|
||||
`local_podcast_id` (by id, or a known feed URL or alias through
|
||||
`resolve_podcast_id`). `search.completed` adds `podcast_discovery`
|
||||
(`running`, `off`, `failed`); a failed podcast search never fails the
|
||||
music search.
|
||||
- `POST /api/podcasts/discovery/preview` and `/discovery/subscribe` take
|
||||
`{"podcast_id", "feed_url"}` from a hit and refuse a URL the id does not
|
||||
hash from (422). The preview fetches the feed through the SSRF-guarded
|
||||
fetcher and returns the channel, season counts and the newest 50 episodes
|
||||
without storing anything; subscribe runs `runner::subscribe_url` with the
|
||||
origin URL (fetch first, then a private subscription with the card's id,
|
||||
or the account's existing podcast for a known URL), and writes nothing
|
||||
when the account is already subscribed. Both share the "add RSS" request
|
||||
limits.
|
||||
- The browser keeps only expected, typed card fields (`podcasts.foundHit`):
|
||||
ids must look like podcast ids, URLs must be absolute `http(s)` without
|
||||
credentials (artwork: `https` only), and texts render with `x-text`.
|
||||
|
||||
## Contributing
|
||||
|
||||
Bug reports, design discussions, and patches are welcome. Before submitting a
|
||||
|
||||
Reference in new issue
Block a user