Add UI for managing tracked playlists
A "Tracked playlists" page in the web UI lists, creates, edits, refreshes and removes tracked playlists, and manages the rules that create a new tracked playlist each period. - New /api/tracked routes. Input is validated with readable errors, including name templates, which made the create daemon panic when they had an invalid % code. - New playlists can be created in Subsonic or picked from existing ones. Genre mix playlists can't be tracked, since two daemons would fight over their songs. - "Refresh" updates a playlist straight away, and the page shows when some of the top songs couldn't be found in the library. - Removing a playlist can also delete it from Subsonic. - Rule names preview live as you type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018opPJMJjLWr4RqdG6vuK6p
This commit is contained in:
10 files changed
+1536
-10
No files matched your search
@@ -44,6 +44,9 @@ The package is written to `target/debian/`.
|
||||
|
||||
Each of these will work best when your music library is well organised with Musicbrainz metadata.
|
||||
|
||||
Tracked playlists, recurring playlists and genre mixes can all be managed from the web UI (see
|
||||
[Discover UI](#discover-ui)), under "Tracked playlists". The SQL below does the same by hand.
|
||||
|
||||
### Tracked playlist
|
||||
|
||||
A tracked playlist is a single Subsonic playlist that tracks data from Listenbrainz. For example,
|
||||
@@ -160,3 +163,16 @@ The UI uses these endpoints under `/api/discover`:
|
||||
| `GET /stream/<song id>` | Stream a library song from Subsonic |
|
||||
| `GET /cover/<cover art id>` | Library cover art from Subsonic |
|
||||
| `GET /youtube/<suggestion id>` | Stream a suggested song from YouTube |
|
||||
|
||||
and these under `/api/tracked` for tracked playlists:
|
||||
|
||||
| Endpoint | Purpose |
|
||||
|-----------------------------------|------------------------------------------------------------|
|
||||
| `GET /playlists` | Tracked playlists, with their names and song counts |
|
||||
| `POST /playlists` | Track an existing playlist (`playlist_id`) or a new one (`name`) |
|
||||
| `PUT /playlists/<id>` | Change size, user or period; rename with `name` |
|
||||
| `DELETE /playlists/<id>?delete_playlist=true` | Stop tracking, optionally deleting the playlist |
|
||||
| `POST /playlists/<id>/refresh` | Update a playlist's songs now |
|
||||
| `GET /subsonic-playlists` | Playlists that can be tracked |
|
||||
| `GET`/`POST /rules`, `PUT`/`DELETE /rules/<id>` | Recurring playlist rules |
|
||||
| `GET /preview-name?template=` | What a name template produces today |
|
||||
Reference in new issue
Block a user