Magnatune's URL are already encoded: we shouldn't use QUrl constructor directly because some characters (like ') will be encoded twice (%27 then %2527). Fixes issue 2510

This commit is contained in:
Arnaud Bienner 2011-12-26 18:15:35 +01:00
parent b36d18eba8
commit 61aaefd65c

View File

@ -221,7 +221,9 @@ Song MagnatuneService::ReadTrack(QXmlStreamReader& reader) {
if (name == "cover_small") song.set_art_automatic(value);
if (name == "albumsku") song.set_comment(value);
if (name == "url") {
QUrl url(value);
QUrl url;
// Magnatune's URLs are already encoded
url.setEncodedUrl(value.toLocal8Bit());
url.setScheme("magnatune");
song.set_url(url);
}