1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-15 05:22:35 +02:00

Merge pull request #181 from xhochy/feature/open-spotify-playlist-from-cli2

Open more than just tracks for Spotify from the commandline
This commit is contained in:
Christian Muehlhaeuser 2013-03-30 06:55:29 -07:00
commit fbcfadf82d

View File

@ -671,7 +671,7 @@ TomahawkApp::loadUrl( const QString& url )
#ifndef ENABLE_HEADLESS
if ( url.startsWith( "tomahawk://" ) )
return GlobalActionManager::instance()->parseTomahawkLink( url );
else if ( url.contains( "open.spotify.com" ) || url.contains( "spotify:track" ) )
else if ( url.contains( "open.spotify.com" ) || url.startsWith( "spotify:" ) )
return GlobalActionManager::instance()->openSpotifyLink( url );
else if ( url.contains( "www.rdio.com" ) )
return GlobalActionManager::instance()->openRdioLink( url );