mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Fix appending spotify tracks
This commit is contained in:
@@ -413,6 +413,7 @@ DropJob::handleSpotifyUrl( const QString& url )
|
|||||||
|
|
||||||
tDebug() << "Got a spotify browse uri in dropjob!" << browseUri;
|
tDebug() << "Got a spotify browse uri in dropjob!" << browseUri;
|
||||||
SpotifyParser* spot = new SpotifyParser( browseUri, dropAction() == Create, this );
|
SpotifyParser* spot = new SpotifyParser( browseUri, dropAction() == Create, this );
|
||||||
|
spot->setSingleMode( false );
|
||||||
|
|
||||||
/// This currently supports draging and dropping a spotify playlist and artist
|
/// This currently supports draging and dropping a spotify playlist and artist
|
||||||
if ( dropAction() == Append )
|
if ( dropAction() == Append )
|
||||||
|
@@ -52,6 +52,10 @@ public:
|
|||||||
explicit SpotifyParser( const QStringList& trackUrls, bool createNewPlaylist = false, QObject* parent = 0 );
|
explicit SpotifyParser( const QStringList& trackUrls, bool createNewPlaylist = false, QObject* parent = 0 );
|
||||||
virtual ~SpotifyParser();
|
virtual ~SpotifyParser();
|
||||||
|
|
||||||
|
// if true, emits track(), if false, emits tracks().
|
||||||
|
// only matters if you're using the QStrin constructor and explicityl dont' want
|
||||||
|
// the single track signal
|
||||||
|
void setSingleMode( bool single ) { m_single = single; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void track( const Tomahawk::query_ptr& track );
|
void track( const Tomahawk::query_ptr& track );
|
||||||
|
Reference in New Issue
Block a user