From 020c6f5bc1c573583c3a6230c6156d1f75b22465 Mon Sep 17 00:00:00 2001 From: Stefan Derkits Date: Tue, 9 Sep 2014 12:00:04 +0200 Subject: [PATCH] change EchonestGenerator to the new Genre API of libechonest --- .../playlist/dynamic/echonest/EchonestGenerator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp b/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp index f214e16ff..e2b7ab039 100644 --- a/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp +++ b/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp @@ -28,10 +28,12 @@ #include "database/Database.h" #include "utils/Logger.h" #include "SourceList.h" + #include #include #include #include +#include using namespace Tomahawk; @@ -713,7 +715,7 @@ EchonestGenerator::loadGenres() { s_genres_lock.lockForWrite(); tLog() << "Genres not in cache or too old, refetching genres ..."; - s_genresJob = Echonest::Artist::fetchGenres(); + s_genresJob = Echonest::Genre::fetchList(); connect( s_genresJob, SIGNAL( finished() ), this, SLOT( genresReceived() ) ); } }