1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 20:04:00 +02:00

change EchonestGenerator to the new Genre API of libechonest

This commit is contained in:
Stefan Derkits
2014-09-09 12:00:04 +02:00
parent 5c2e384d44
commit 020c6f5bc1

View File

@@ -28,10 +28,12 @@
#include "database/Database.h" #include "database/Database.h"
#include "utils/Logger.h" #include "utils/Logger.h"
#include "SourceList.h" #include "SourceList.h"
#include <QFile> #include <QFile>
#include <QDir> #include <QDir>
#include <QReadWriteLock> #include <QReadWriteLock>
#include <EchonestCatalogSynchronizer.h> #include <EchonestCatalogSynchronizer.h>
#include <echonest/Genre.h>
using namespace Tomahawk; using namespace Tomahawk;
@@ -713,7 +715,7 @@ EchonestGenerator::loadGenres()
{ {
s_genres_lock.lockForWrite(); s_genres_lock.lockForWrite();
tLog() << "Genres not in cache or too old, refetching genres ..."; 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() ) ); connect( s_genresJob, SIGNAL( finished() ), this, SLOT( genresReceived() ) );
} }
} }