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:
parent
b36d18eba8
commit
61aaefd65c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user