needs cleaning up, conflicting info?

from old wiki:Client_Support multiscrobble section
h3. Amarok

Amarok 2 will work with this script as reported here . You need to install lastfmsubmitd 1.05 or greater (present in Ubuntu karmic and Debian testing) and be sure to have write access with your user to /var/log/lastfm/ and /var/spool/lastfm/ (in Debian aptitude/apt will ask you wich group to use for the daemon, my user is in group "audio" as recommended there, so I wrote "audio" (without quotes)). You also need to edit /etc/lastfmsubmitd.conf to add/modify:

[server]
url=http://turtle.libre.fm/

User name has to be put in lowercase, even if you registered with a name containing uppercase characters.

Amarok 1.4 will now work with a plugin from bananabob . It should also be possible to multiscrobble by not unchecking the "Improve my profile..." box in the last.fm settings for Amarok.

An alternative plugin for Amarok 1.4 (which doesn't require installing lastfmsubmitd) is avaiable here and was announced on the mailing list .

Amarok 1.4.10 can be patched to scrobble to Libre.FM rather than Last.FM by applying the following patch to scrobbler.cpp


80c80

<         m_similarArtistsJob = KIO::get( "http://ws.audioscrobbler.com/1.0/artist/" + safeArtist + "/similar.xml", false, false );

---

>         m_similarArtistsJob = KIO::get( "http://turtle.libre.fm/1.0/artist/" + safeArtist + "/similar.xml", false, false );

378c378

< QString ScrobblerSubmitter::HANDSHAKE_URL h1. "http://post.audioscrobbler.com/?hstrue";

---

> QString ScrobblerSubmitter::HANDSHAKE_URL h1. "http://turtle.libre.fm/?hstrue";

575c575,576

<                     "&i[" + count + "]=" + KURL::encode_string_no_slash( playStartTime.toString( "yyyy-MM-dd hh:mm:ss" ) );

---

>                     "&i[" + count + "]=" + KURL::encode_string_no_slash( playStartTime.toString( "yyyy-MM-dd hh:mm:ss" ) ) +

>               "&" ;

Add your voice to the Amarok 2.x poll asking for native Libre.FM support.

from old wiki:Client_Support clients that doesnt work section

Amarok

Amarok 1.4 will now work with a plugin from bananabob . It should also be possible to multiscrobble by not unchecking the "Improve my profile..." box in the last.fm settings for Amarok.

Amarok 1.4 don't seem to work with the hosts entry.

I believe that this statement is incorrect. many users report that Amarok will not send to libre.fm. I can report that it doesn't work with Amarok 1.4

User:bananabob

Amarok2 tries to authenticate the user first (I belive it uses ws.audioscrobbler.com) and therefore it fails. I will try to get a meaningful tcp dump once I have the time.

User:Marius

This is now fixed for Amarok 2, though you also have to map ws.audioscrobbler.com to the same ip as post.audioscrobbler.com.

Amarok (version 1.4.10) doesn't work also for me. Here is a TCP dump of the communication with the server (89.16.177.55, injected in Amarok via /etc/hosts), with potentially privacy-sensible data obscured:


First connection, request:

 GET /?hsh1.true&p=1.1&c=ark&v=1.4&ugiomasce HTTP/1.1

 User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) (Debian)

 Accept: text/html, image/jpeg, image/png, text/*, image/*, */*

 Accept-Encoding: x-gzip, x-deflate, gzip, deflate

 Accept-Charset: utf-8, utf-8;qh1.0.5, *;q0.5

 Accept-Language: it, en

 Host: post.audioscrobbler.com

 Connection: Keep-Alive

Response:

 HTTP/1.1 200 OK

 Date: Mon, 27 Apr 2009 22:30:33 GMT

 Server: Apache/2.2.11 (Debian) mod_wsgi/2.3 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0

 Content-Length: 71

 Keep-Alive: timeouth1.15, max100

 Connection: Keep-Alive

 Content-Type: text/html

 UPTODATE

 1240871433

 http://turtle.libre.fm/submissions/1.2/

 INTERVAL 1

Second connection, request:

 POST /submissions/1.2/ HTTP/1.1

 User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) (Debian)

 Pragma: no-cache

 Cache-control: no-cache

 Accept: text/html, image/jpeg, image/png, text/*, image/*, */*

 Accept-Encoding: x-gzip, x-deflate, gzip, deflate

 Accept-Charset: utf-8, utf-8;qh1.0.5, *;q0.5

 Accept-Language: it, en

 Host: turtle.libre.fm

 Content-Type: application/x-www-form-urlencoded

 Connection: Keep-Alive

 Content-Length: 415

 uh1.giomasce&s=d06fbb8477fc3f7a671f3e59********&a[0]=Angelo%20Branduardi&t[0]=Si%20Pu%C3%B2%20Fare&b[0]Si%20Pu%C3%B

2%20Fare&m[0]h1.&l[0]=260&i[0]=2009-04-27%2021%3A47%3A25&a[1]=Angelo%20Branduardi&t[1]=Si%20Pu%C3%B2%20Fare&b[1]Si%2

0Pu%C3%B2%20Fare&m[1]h1.&l[1]=260&i[1]=2009-04-27%2021%3A54%3A50&a[2]=Angelo%20Branduardi&t[2]Si%20Pu%C3%B2%20Fare&b

[2]h1.Si%20Pu%C3%B2%20Fare&m[2]=&l[2]=260&i[2]2009-04-27%2022%3A21%3A04.

Response:

 HTTP/1.1 200 OK

 Date: Mon, 27 Apr 2009 22:30:34 GMT

 Server: Apache/2.2.11 (Debian) mod_wsgi/2.3 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0

 Content-Length: 60

 Keep-Alive: timeouth1.15, max100

 Connection: Keep-Alive

 Content-Type: text/html

 FAILED Track 2 was submitted with empty mandatory field(s).

Other submission queries are sent, but responded by the server like this one. I'm not enough into Last.fm protocol to understand what mandatory field is missing in the request.