1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

Fix coding style

This commit is contained in:
Uwe L. Korn 2013-02-02 17:34:27 +01:00
parent c4b734fcf3
commit 23fe2de9b1

View File

@ -86,8 +86,9 @@ SpotifyParser::lookupUrl( const QString& rawLink )
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());
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})+))