1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +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

View File

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