diff --git a/src/libtomahawk/utils/SpotifyParser.cpp b/src/libtomahawk/utils/SpotifyParser.cpp index ab8a85429..4219d804a 100644 --- a/src/libtomahawk/utils/SpotifyParser.cpp +++ b/src/libtomahawk/utils/SpotifyParser.cpp @@ -85,6 +85,11 @@ SpotifyParser::lookupUrl( const QString& rawLink ) link.replace( "/", ":" ); link = "spotify:" + link; } + // Some spotify apps contain the link to the playlist as url-encoded in their link (e.g. ShareMyPlaylists) + if ( link.contains( "%3A" ) ) + { + link = QUrl::fromPercentEncoding( link.toUtf8() ); + } // TODO: Ignoring search and user querys atm // (spotify:(?:(?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+|user:[^:]+|search:(?:[-\w$\.+!*'(),<>:\s]+|%[a-fA-F0-9\s]{2})+)) QRegExp rx( "(spotify:(?:(?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+[^:]))" );