1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

SpotifyParse fix

This commit is contained in:
Hugo Lindström 2013-02-20 16:36:36 +01:00
parent 75537b9c20
commit 35a3511ee5

View File

@ -81,7 +81,7 @@ SpotifyParser::lookupUrl( const QString& rawLink )
QString link = rawLink;
if ( link.contains( "open.spotify.com/" ) ) // convert to a URI
{
link.replace( "http://open.spotify.com/", "" );
link.replace( "http://", "" ).replace( "open.spotify.com/", "" );
link.replace( "/", ":" );
link = "spotify:" + link;
}