From 58eab4d3bc8f118ee84ec0a1ef68ab0ad0f3618b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 14 Jun 2019 23:02:33 +0200 Subject: [PATCH] Fix verifying xml in tidal stream url --- src/tidal/tidalstreamurlrequest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tidal/tidalstreamurlrequest.cpp b/src/tidal/tidalstreamurlrequest.cpp index df0433544..13be19c79 100644 --- a/src/tidal/tidalstreamurlrequest.cpp +++ b/src/tidal/tidalstreamurlrequest.cpp @@ -156,7 +156,7 @@ void TidalStreamURLRequest::StreamURLReceived() { } reply_ = nullptr; - qLog(Debug) << "Tidal:" << data; + //qLog(Debug) << "Tidal:" << data; QJsonObject json_obj = ExtractJsonObj(data, error); if (json_obj.isEmpty()) { @@ -196,10 +196,10 @@ void TidalStreamURLRequest::StreamURLReceived() { QString manifest(json_obj["manifest"].toString()); QByteArray data_manifest = QByteArray::fromBase64(manifest.toUtf8()); - qLog(Debug) << "Tidal:" << data_manifest; + //qLog(Debug) << "Tidal:" << data_manifest; QXmlStreamReader xml_reader(data_manifest); - if (!xml_reader.hasError()) { + if (xml_reader.readNextStartElement()) { QString filepath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/tidalstreams"; QString filename = "tidal-" + QString::number(song_id_) + ".xml";