From 594d16cec5f2a8b1d96920f23e07546198933c48 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 21 Jan 2011 14:44:27 +0100 Subject: [PATCH] * Changed scrobbler's client-id to Tomahawk (thk). --- src/scrobbler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/scrobbler.cpp b/src/scrobbler.cpp index 7f6576162..228604b9a 100644 --- a/src/scrobbler.cpp +++ b/src/scrobbler.cpp @@ -32,6 +32,10 @@ Scrobbler::Scrobbler( QObject* parent ) Your API Key is 7194b85b6d1f424fe1668173a78c0c4a Your secret is ba80f1df6d27ae63e9cb1d33ccf2052f */ + + // Flush session key cache + TomahawkSettings::instance()->setLastFmSessionKey( QByteArray() ); + lastfm::ws::ApiKey = "7194b85b6d1f424fe1668173a78c0c4a"; lastfm::ws::SharedSecret = "ba80f1df6d27ae63e9cb1d33ccf2052f"; lastfm::ws::Username = TomahawkSettings::instance()->lastFmUsername(); @@ -196,7 +200,7 @@ Scrobbler::onAuthenticated() TomahawkSettings::instance()->setLastFmSessionKey( lastfm::ws::SessionKey.toLatin1() ); if( TomahawkSettings::instance()->scrobblingEnabled() ) - m_scrobbler = new lastfm::Audioscrobbler( "tst" ); + m_scrobbler = new lastfm::Audioscrobbler( "thk" ); } } else @@ -227,7 +231,7 @@ Scrobbler::createScrobbler() { lastfm::ws::SessionKey = TomahawkSettings::instance()->lastFmSessionKey(); - m_scrobbler = new lastfm::Audioscrobbler( "tst" ); + m_scrobbler = new lastfm::Audioscrobbler( "thk" ); m_scrobbler->moveToThread( thread() ); } }