mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
If no artist or description or song is specified, default to song-radio.
This makes a bunch of stations/playlists with mood/style only work
This commit is contained in:
parent
0b80cd65bd
commit
456e57cf20
@ -226,6 +226,12 @@ EchonestGenerator::getParams() throw( std::runtime_error )
|
||||
connect( r, SIGNAL( finished() ), this, SLOT( songLookupFinished() ) );
|
||||
}
|
||||
}
|
||||
|
||||
if( m_waiting.isEmpty() ) {
|
||||
m_storedParams.clear();
|
||||
emit paramsGenerated( params );
|
||||
}
|
||||
|
||||
} else {
|
||||
emit paramsGenerated( params );
|
||||
}
|
||||
@ -376,6 +382,8 @@ EchonestGenerator::appendRadioType( Echonest::DynamicPlaylist::PlaylistParams& p
|
||||
params.append( Echonest::DynamicPlaylist::PlaylistParamData( Echonest::DynamicPlaylist::Type, Echonest::DynamicPlaylist::ArtistRadioType ) );
|
||||
else if( onlyThisArtistType( Echonest::DynamicPlaylist::SongRadioType ) )
|
||||
params.append( Echonest::DynamicPlaylist::PlaylistParamData( Echonest::DynamicPlaylist::Type, Echonest::DynamicPlaylist::SongRadioType ) );
|
||||
else // no artist or song or description types. default to song-radio
|
||||
params.append( Echonest::DynamicPlaylist::PlaylistParamData( Echonest::DynamicPlaylist::Type, Echonest::DynamicPlaylist::SongRadioType ) );
|
||||
|
||||
return static_cast< Echonest::DynamicPlaylist::ArtistTypeEnum >( params.last().second.toInt() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user