mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 12:47:45 +02:00
Change echonest API key for the win
This commit is contained in:
@@ -86,6 +86,7 @@
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const char* enApiSecret = "BNvTzfthHr/d1eNhHLvL1Jo=";
|
||||||
|
|
||||||
void
|
void
|
||||||
increaseMaxFileDescriptors()
|
increaseMaxFileDescriptors()
|
||||||
@@ -173,7 +174,11 @@ TomahawkApp::init()
|
|||||||
tDebug() << "Init Database.";
|
tDebug() << "Init Database.";
|
||||||
initDatabase();
|
initDatabase();
|
||||||
|
|
||||||
Echonest::Config::instance()->setAPIKey( "JRIHWEP6GPOER2QQ6" );
|
QByteArray magic = QByteArray::fromBase64( enApiSecret );
|
||||||
|
QByteArray wand = QByteArray::fromBase64( QCoreApplication::applicationName().toLatin1() );
|
||||||
|
int length = magic.length(), n2 = wand.length();
|
||||||
|
for ( int i=0; i<length; i++ ) magic[i] = magic[i] ^ wand[i%n2];
|
||||||
|
Echonest::Config::instance()->setAPIKey( magic );
|
||||||
|
|
||||||
tDebug() << "Init Echonest Factory.";
|
tDebug() << "Init Echonest Factory.";
|
||||||
GeneratorFactory::registerFactory( "echonest", new EchonestFactory );
|
GeneratorFactory::registerFactory( "echonest", new EchonestFactory );
|
||||||
|
Reference in New Issue
Block a user