From 4d888dfce8b77d3504eb5b52ffa0c530351b4200 Mon Sep 17 00:00:00 2001 From: Ike Devolder Date: Thu, 17 Oct 2019 17:06:30 +0200 Subject: [PATCH] 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 --- src/subsonic/subsonicrequest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/subsonic/subsonicrequest.cpp b/src/subsonic/subsonicrequest.cpp index 569ad4625..76a996522 100644 --- a/src/subsonic/subsonicrequest.cpp +++ b/src/subsonic/subsonicrequest.cpp @@ -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;