1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Changed scrobbler's client-id to Tomahawk (thk).

This commit is contained in:
Christian Muehlhaeuser
2011-01-21 14:44:27 +01:00
parent 3a1faf17ec
commit 594d16cec5

View File

@@ -32,6 +32,10 @@ Scrobbler::Scrobbler( QObject* parent )
Your API Key is 7194b85b6d1f424fe1668173a78c0c4a Your API Key is 7194b85b6d1f424fe1668173a78c0c4a
Your secret is ba80f1df6d27ae63e9cb1d33ccf2052f Your secret is ba80f1df6d27ae63e9cb1d33ccf2052f
*/ */
// Flush session key cache
TomahawkSettings::instance()->setLastFmSessionKey( QByteArray() );
lastfm::ws::ApiKey = "7194b85b6d1f424fe1668173a78c0c4a"; lastfm::ws::ApiKey = "7194b85b6d1f424fe1668173a78c0c4a";
lastfm::ws::SharedSecret = "ba80f1df6d27ae63e9cb1d33ccf2052f"; lastfm::ws::SharedSecret = "ba80f1df6d27ae63e9cb1d33ccf2052f";
lastfm::ws::Username = TomahawkSettings::instance()->lastFmUsername(); lastfm::ws::Username = TomahawkSettings::instance()->lastFmUsername();
@@ -196,7 +200,7 @@ Scrobbler::onAuthenticated()
TomahawkSettings::instance()->setLastFmSessionKey( lastfm::ws::SessionKey.toLatin1() ); TomahawkSettings::instance()->setLastFmSessionKey( lastfm::ws::SessionKey.toLatin1() );
if( TomahawkSettings::instance()->scrobblingEnabled() ) if( TomahawkSettings::instance()->scrobblingEnabled() )
m_scrobbler = new lastfm::Audioscrobbler( "tst" ); m_scrobbler = new lastfm::Audioscrobbler( "thk" );
} }
} }
else else
@@ -227,7 +231,7 @@ Scrobbler::createScrobbler()
{ {
lastfm::ws::SessionKey = TomahawkSettings::instance()->lastFmSessionKey(); lastfm::ws::SessionKey = TomahawkSettings::instance()->lastFmSessionKey();
m_scrobbler = new lastfm::Audioscrobbler( "tst" ); m_scrobbler = new lastfm::Audioscrobbler( "thk" );
m_scrobbler->moveToThread( thread() ); m_scrobbler->moveToThread( thread() );
} }
} }