1 |
jmbsvicetto 09/04/24 02:50:25 |
2 |
|
3 |
Added: amarok-2.0.2-lastfm-authentication.patch |
4 |
Log: |
5 |
Bumped amarok-2.0.2 to include a lastfm patch. Thanks to Gustavo Henrique Nihei for poking me about it. |
6 |
(Portage version: 2.2_rc30/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-sound/amarok/files/amarok-2.0.2-lastfm-authentication.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/amarok/files/amarok-2.0.2-lastfm-authentication.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/amarok/files/amarok-2.0.2-lastfm-authentication.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: amarok-2.0.2-lastfm-authentication.patch |
15 |
=================================================================== |
16 |
--- src/services/lastfm/LastFmServiceSettings.cpp |
17 |
+++ src/services/lastfm/LastFmServiceSettings.cpp |
18 |
@@ -94,14 +94,12 @@ |
19 |
debug() << "username:" << QString( QUrl::toPercentEncoding( Ws::Username ) ); |
20 |
|
21 |
QString authToken = md5( ( m_configDialog->kcfg_ScrobblerUsername->text() + md5( m_configDialog->kcfg_ScrobblerPassword->text().toUtf8() ) ).toUtf8() ); |
22 |
- QString sign_key = md5( ( "api_key" + QString( Ws::ApiKey ) + "authToken" + authToken + "methodauth.getMobileSession" + QString( Ws::SharedSecret ) ).toUtf8() ); |
23 |
|
24 |
// now authenticate w/ last.fm and get our session key |
25 |
WsReply* reply = WsRequestBuilder( "auth.getMobileSession" ) |
26 |
.add( "username", m_configDialog->kcfg_ScrobblerUsername->text() ) |
27 |
.add( "authToken", authToken ) |
28 |
.add( "api_key", Ws::ApiKey ) |
29 |
- .add( "api_sig", sign_key ) |
30 |
.get(); |
31 |
|
32 |
connect( reply, SIGNAL( finished( WsReply* ) ), SLOT( onAuthenticated( WsReply* ) ) ); |
33 |
--- src/services/lastfm/LastFmService.cpp |
34 |
+++ src/services/lastfm/LastFmService.cpp |
35 |
@@ -115,14 +115,12 @@ |
36 |
debug() << "username:" << QString( QUrl::toPercentEncoding( Ws::Username ) ); |
37 |
|
38 |
QString authToken = md5( ( m_userName + md5( password.toUtf8() ) ).toUtf8() ); |
39 |
- QString sign_key = md5( ( "api_key" + QString( Ws::ApiKey ) + "authToken" + authToken + "methodauth.getMobileSession" + QString( Ws::SharedSecret ) ).toUtf8() ); |
40 |
|
41 |
// now authenticate w/ last.fm and get our session key |
42 |
WsReply* reply = WsRequestBuilder( "auth.getMobileSession" ) |
43 |
.add( "username", m_userName ) |
44 |
.add( "authToken", authToken ) |
45 |
.add( "api_key", Ws::ApiKey ) |
46 |
- .add( "api_sig", sign_key ) |
47 |
.get(); |
48 |
|
49 |
connect( reply, SIGNAL( finished( WsReply* ) ), SLOT( onAuthenticated( WsReply* ) ) ); |