subsonic: change disc to discNumber (#278)

As found in the v1.13.0 xsd, the disc is named discNumber in the api,
currently there is a check for disc which will never be found in the
response.

@see http://www.subsonic.org/pages/inc/api/schema/subsonic-rest-api-1.13.0.xsd

Signed-off-by: BlackEagle <ike.devolder@gmail.com>
This commit is contained in:
Ike Devolder 2019-10-17 17:06:30 +02:00 committed by Jonas Kvinge
parent 08ff6f0ede
commit 4d888dfce8
1 changed files with 3 additions and 3 deletions

View File

@ -533,9 +533,9 @@ int SubsonicRequest::ParseSong(Song &song, const QJsonObject &json_obj, const qi
if (json_obj.contains("year")) year = json_obj["year"].toInt();
int disc = 0;
if (json_obj.contains("disc")) {
disc = json_obj["disc"].toString().toInt();
if (disc == 0) disc = json_obj["disc"].toInt();
if (json_obj.contains("discNumber")) {
disc = json_obj["discNumber"].toString().toInt();
if (disc == 0) disc = json_obj["discNumber"].toInt();
}
int track = 0;