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

(cherry picked from commit 61aaefd65c)
This commit is contained in:
Arnaud Bienner 2011-12-26 18:15:35 +01:00 committed by David Sansome
parent 6f7e507b30
commit eedf687853
1 changed files with 3 additions and 1 deletions

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);
}