mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
* Fixed startFromGenre.
This commit is contained in:
committed by
Michael Zanetti
parent
53ba4aae93
commit
6bb9ec7de3
@@ -307,7 +307,24 @@ EchonestGenerator::startFromGenre( const QString& genre )
|
|||||||
|
|
||||||
Echonest::DynamicPlaylist::PlaylistParams params;
|
Echonest::DynamicPlaylist::PlaylistParams params;
|
||||||
params << data;
|
params << data;
|
||||||
|
|
||||||
|
QVariantList controlsList;
|
||||||
|
QVariantMap controlsMap;
|
||||||
|
|
||||||
|
controlsMap[ "id" ] = uuid();
|
||||||
|
controlsMap[ "selectedType" ] = "echonest";
|
||||||
|
controlsMap[ "match" ] = QString::number( data.first );
|
||||||
|
controlsMap[ "input" ] = data.second;
|
||||||
|
controlsMap[ "summary" ] = "";
|
||||||
|
controlsList << controlsMap;
|
||||||
|
|
||||||
params.append( Echonest::DynamicPlaylist::PlaylistParamData( Echonest::DynamicPlaylist::Type, Echonest::DynamicPlaylist::ArtistDescriptionType ) );
|
params.append( Echonest::DynamicPlaylist::PlaylistParamData( Echonest::DynamicPlaylist::Type, Echonest::DynamicPlaylist::ArtistDescriptionType ) );
|
||||||
|
controlsMap[ "id" ] = uuid();
|
||||||
|
controlsMap[ "match" ] = QString::number( Echonest::DynamicPlaylist::Type );
|
||||||
|
controlsMap[ "input" ] = QString::number( Echonest::DynamicPlaylist::ArtistDescriptionType );
|
||||||
|
controlsList << controlsMap;
|
||||||
|
|
||||||
|
setControls( controlsList );
|
||||||
emit paramsGenerated( params );
|
emit paramsGenerated( params );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user