feat(backend): add bulk queue and bulk favorites commands
- v2_bulk_add_to_queue: add multiple tracks to end of queue - v2_bulk_add_to_queue_next: add multiple tracks as play next (reversed to preserve selection order) - v2_bulk_add_favorites: add multiple tracks to favorites via API then update local cache atomically (lock not held across await points) - v2_add_tracks_to_playlist and v2_remove_tracks_from_playlist already accept Vec<u64> — no changes needed for playlist bulk actions
This commit is contained in:
2 files changed
+79
No files matched your search
@@ -992,6 +992,8 @@ pub fn run() {
|
||||
commands_v2::v2_clear_queue,
|
||||
commands_v2::v2_add_to_queue,
|
||||
commands_v2::v2_add_to_queue_next,
|
||||
commands_v2::v2_bulk_add_to_queue,
|
||||
commands_v2::v2_bulk_add_to_queue_next,
|
||||
commands_v2::v2_set_queue,
|
||||
commands_v2::v2_remove_from_queue,
|
||||
commands_v2::v2_remove_upcoming_track,
|
||||
@@ -1105,6 +1107,7 @@ pub fn run() {
|
||||
commands_v2::v2_sync_cached_favorite_tracks,
|
||||
commands_v2::v2_cache_favorite_track,
|
||||
commands_v2::v2_uncache_favorite_track,
|
||||
commands_v2::v2_bulk_add_favorites,
|
||||
commands_v2::v2_clear_favorites_cache,
|
||||
commands_v2::v2_get_cached_favorite_albums,
|
||||
commands_v2::v2_sync_cached_favorite_albums,
|
||||
|
||||
Reference in new issue
Block a user