FreeBSD Bugzilla – Attachment 95353 Details for
Bug 133718
audio/amarok-kde4 2.0.2 has last.fm support broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 1.73 KB, created by
emz
on 2009-04-14 04:30:01 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
emz
Created:
2009-04-14 04:30:01 UTC
Size:
1.73 KB
patch
obsolete
>--- src/services/lastfm/LastFmServiceSettings.cpp >+++ src/services/lastfm/LastFmServiceSettings.cpp >@@ -94,14 +94,12 @@ > debug() << "username:" << QString( QUrl::toPercentEncoding( Ws::Username ) ); > > QString authToken = md5( ( m_configDialog->kcfg_ScrobblerUsername->text() + md5( m_configDialog->kcfg_ScrobblerPassword->text().toUtf8() ) ).toUtf8() ); >- QString sign_key = md5( ( "api_key" + QString( Ws::ApiKey ) + "authToken" + authToken + "methodauth.getMobileSession" + QString( Ws::SharedSecret ) ).toUtf8() ); > > // now authenticate w/ last.fm and get our session key > WsReply* reply = WsRequestBuilder( "auth.getMobileSession" ) > .add( "username", m_configDialog->kcfg_ScrobblerUsername->text() ) > .add( "authToken", authToken ) > .add( "api_key", Ws::ApiKey ) >- .add( "api_sig", sign_key ) > .get(); > > connect( reply, SIGNAL( finished( WsReply* ) ), SLOT( onAuthenticated( WsReply* ) ) ); >--- src/services/lastfm/LastFmService.cpp >+++ src/services/lastfm/LastFmService.cpp >@@ -115,14 +115,12 @@ > debug() << "username:" << QString( QUrl::toPercentEncoding( Ws::Username ) ); > > QString authToken = md5( ( m_userName + md5( password.toUtf8() ) ).toUtf8() ); >- QString sign_key = md5( ( "api_key" + QString( Ws::ApiKey ) + "authToken" + authToken + "methodauth.getMobileSession" + QString( Ws::SharedSecret ) ).toUtf8() ); > > // now authenticate w/ last.fm and get our session key > WsReply* reply = WsRequestBuilder( "auth.getMobileSession" ) > .add( "username", m_userName ) > .add( "authToken", authToken ) > .add( "api_key", Ws::ApiKey ) >- .add( "api_sig", sign_key ) > .get(); > > connect( reply, SIGNAL( finished( WsReply* ) ), SLOT( onAuthenticated( WsReply* ) ) );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 133718
: 95353