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:
parent
6f7e507b30
commit
eedf687853
|
@ -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…
Reference in New Issue