1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01: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
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" ) {
qDebug() << "Only echonest generators are supported";