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:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user