Smart playlists (#476)
A playlist is the episodes of the podcasts chosen, those set to play first ahead of the rest, newest or oldest first, unplayed only or all, kept up to date by itself (table `playlists`, /api/playlists). It sits in a folder of its own in the feed list, as Signals do. Played from one, an episode goes on to the playlist's next once Up Next has nothing. The priority ids are written into the ORDER BY, which the page query uses twice, so they are quoted there rather than bound; they are also only ever feed ids this person subscribes to. The folder row first borrowed Signals' `sigs` class, which the tests use to mean Signals' folder; four Signals tests failed until it had its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Added
|
||||
|
||||
- Smart playlists: `GET` and `POST /api/playlists`, `PATCH` and `DELETE /api/playlists/{id}`, and `GET /api/playlists/{id}/entries`, the episodes of the podcasts chosen in the playlist's order, those set to play first ahead of the rest (#476).
|
||||
- A feed in `/api/feeds` says whether it has audio or video (`podcast`), for the page's Podcasts shelf (#474).
|
||||
- Up Next, a queue of episodes kept per account so every device shares it: `GET /api/queue` lists it in order, `PUT /api/queue` sets it, and an episode leaves it once it is 90% played (#473).
|
||||
- The API answers in protobuf as well as JSON: a client that sends `Accept: application/x-protobuf` gets protobuf, and one that sends `Content-Type: application/x-protobuf` may send its body so; JSON stays the default for a client that does not ask, and an answer of null stays JSON. The messages are in `crates/wire/proto/ipx.proto`. ipx's own calls to the directory and ipx-play go in protobuf too, so both need their protobuf releases first. Answers and those calls go through structs generated from the `.proto` files, about four times quicker to read than the JSON (#465, #470).
|
||||
|
||||
Reference in New Issue
Block a user