add settings dialog radio for saving queue locally or to server

This commit is contained in:
Drew Weymouth
2024-04-16 18:13:22 -07:00
parent 8eeb2aa53a
commit 63b0ab7374
4 changed files with 39 additions and 7 deletions
@@ -382,6 +382,9 @@ func (s *subsonicMediaProvider) GetLyrics(track *mediaprovider.Track) (*mediapro
// CanSavePlayQueue interface
func (s *subsonicMediaProvider) SavePlayQueue(trackIDs []string, currentTrackPos int, timeSeconds int) error {
if len(trackIDs) == 0 {
return nil // don't save an empty queue
}
return s.client.SavePlayQueue(trackIDs, map[string]string{
"current": trackIDs[currentTrackPos],
"position": strconv.Itoa(timeSeconds * 1000),