diff --git a/src/internet/intergalacticfm/intergalacticfmservice.cpp b/src/internet/intergalacticfm/intergalacticfmservice.cpp index 3fc76fa14..e562c395a 100644 --- a/src/internet/intergalacticfm/intergalacticfmservice.cpp +++ b/src/internet/intergalacticfm/intergalacticfmservice.cpp @@ -157,6 +157,7 @@ void IntergalacticFMServiceBase::RefreshStreamsFinished(QNetworkReply* reply, void IntergalacticFMServiceBase::ReadChannel(QXmlStreamReader& reader, StreamList* ret) { Stream stream; + bool found = false; while (!reader.atEnd()) { switch (reader.readNext()) { @@ -176,6 +177,14 @@ void IntergalacticFMServiceBase::ReadChannel(QXmlStreamReader& reader, StreamLis QUrl url(reader.readElementText()); url.setScheme(url_handler_->scheme()); + stream.url_ = url; + found = true; + } else if (found == false && + reader.name() == "highestpls" && + reader.attributes().value("format") == "mp3") { + QUrl url(reader.readElementText()); + url.setScheme(url_handler_->scheme()); + stream.url_ = url; } else { Utilities::ConsumeCurrentElement(&reader);