1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Fix appending spotify tracks

This commit is contained in:
Leo Franchi 2011-10-02 17:18:53 -04:00
parent 094e8653ff
commit d6bf6744d8
2 changed files with 5 additions and 0 deletions

View File

@ -413,6 +413,7 @@ DropJob::handleSpotifyUrl( const QString& url )
tDebug() << "Got a spotify browse uri in dropjob!" << browseUri;
SpotifyParser* spot = new SpotifyParser( browseUri, dropAction() == Create, this );
spot->setSingleMode( false );
/// This currently supports draging and dropping a spotify playlist and artist
if ( dropAction() == Append )

View File

@ -52,6 +52,10 @@ public:
explicit SpotifyParser( const QStringList& trackUrls, bool createNewPlaylist = false, QObject* parent = 0 );
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:
void track( const Tomahawk::query_ptr& track );