use JSON instead of XML in Subsonic API

This commit is contained in:
Drew Weymouth
2026-03-11 07:38:58 -07:00
parent 97df8f1f4b
commit 03fd760589
4 changed files with 6 additions and 4 deletions
@@ -53,7 +53,7 @@ func (s *subsonicMediaProvider) GetLibraries() ([]mediaprovider.Library, error)
return nil, err
}
return sharedutil.MapSlice(folders, func(f *subsonic.MusicFolder) mediaprovider.Library {
return mediaprovider.Library{ID: f.ID, Name: f.Name}
return mediaprovider.Library{ID: strconv.Itoa(f.ID), Name: f.Name}
}), nil
}
+2
View File
@@ -220,6 +220,7 @@ func (s *ServerManager) connect(connection ServerConnection, password string) (m
User: connection.Username,
PasswordAuth: connection.LegacyAuth,
ClientName: res.AppName,
UseJSON: true,
},
}
s.checkSetInsecureSkipVerify(connection.SkipSSLVerify, cli.(*subsonicMP.SubsonicServer).Client.Client)
@@ -231,6 +232,7 @@ func (s *ServerManager) connect(connection ServerConnection, password string) (m
User: connection.Username,
PasswordAuth: connection.LegacyAuth,
ClientName: res.AppName,
UseJSON: true,
},
}
s.checkSetInsecureSkipVerify(connection.SkipSSLVerify, altCli.(*subsonicMP.SubsonicServer).Client.Client)