1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Generate proper autoplaylist/station urls

This commit is contained in:
Leo Franchi
2011-05-22 20:44:24 -04:00
parent 428828426c
commit 1e6091189d

View File

@@ -88,7 +88,7 @@ GlobalActionManager::openLinkFromQuery( const Tomahawk::query_ptr& query ) const
void void
GlobalActionManager::copyPlaylistToClipboard( const Tomahawk::dynplaylist_ptr& playlist ) GlobalActionManager::copyPlaylistToClipboard( const Tomahawk::dynplaylist_ptr& playlist )
{ {
QUrl link( "tomahawk://station/create/" ); QUrl link( QString( "tomahawk://%1/create/" ).arg( playlist->mode() == Tomahawk::OnDemand ? "station" : "autoplaylist" ) );
if( playlist->generator()->type() != "echonest" ) { if( playlist->generator()->type() != "echonest" ) {
qDebug() << "Only echonest generators are supported"; qDebug() << "Only echonest generators are supported";