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
@@ -7,6 +7,7 @@ mod models;
|
||||
mod playlist;
|
||||
mod subsonic;
|
||||
mod track;
|
||||
mod tracked;
|
||||
mod web;
|
||||
mod youtube;
|
||||
|
||||
@@ -87,6 +88,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.manage(database)
|
||||
.manage(youtube)
|
||||
.mount("/api/discover", web::routes())
|
||||
.mount("/api/tracked", tracked::routes())
|
||||
.mount(
|
||||
"/api/playlist",
|
||||
routes![
|
||||
|
||||
Reference in new issue
Block a user