mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-25 15:01:11 +02:00
Fix that not all genres are loaded (via a small hack) [only for stable-0.8]
This commit is contained in:
@@ -708,7 +708,9 @@ EchonestGenerator::loadGenres()
|
||||
{
|
||||
s_genres_lock.lockForWrite();
|
||||
tLog() << "Genres not in cache or too old, refetching genres ...";
|
||||
s_genresJob = Echonest::Artist::fetchGenres();
|
||||
//Hack for Tomahawk 0.8 - use new echones Genre API URL but old libechonest 2.0.2 parser
|
||||
QString genreUrl = QString( "http://developer.echonest.com/api/v4/genre/list?api_key=%1&format=xml&results=2000" ).arg( QString( Echonest::Config::instance()->apiKey() ) );
|
||||
s_genresJob = Echonest::Config::instance()->nam()->get( QNetworkRequest( QUrl( genreUrl ) ) );
|
||||
connect( s_genresJob, SIGNAL( finished() ), this, SLOT( genresReceived() ) );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user