Furniture_top
  Developer Center Add-ons Community Support Blog About Jobs  



Picture_1_small_thumbnail

Audioscrobbler (Basic Online-only Scrobbling Support)

by stevel

  • Version 0.0.5
  • Updated about 1 month ago

This add-on doesn't support your operating system. - Other versions

Scrobbles tracks to Last.fm
  • 10745 downloads
  • 4 stars ( 6 ratings)
  • 24 comments

Note:
Starting with 0.0.3, there is the ability to have the extension output debugging information. If you're having trouble scrobbling, please turn on "Debugging" (in your Audioscrobbler preference pane), and open up the "Error Console" (in your Tools menu). You can see the data the extension tries to post to the audioscrobbler servers, and the responses (or lack thereof) it gets back. If you're seeing responses coming back, but the track is still failing to scrobble then please let me know. If you don't see responses coming back, then it's possible the audioscrobbler server is down (seems to be flakly lately).

Changelog:
0.0.5: Version bump to make it compatible with 0.6pre
0.0.4: Applied timo's fix so songs with encoded characters should be scrobbled correctly now. Thanks timo!

0.0.3: Added ability to test login. Hid password due to popular demand. Added a bunch of debug logging to the Javascript error console.

0.0.2: Feh. Fubar'd.

0.0.1: Super super stupid naive version. All it has it a username/password preferences dialog, and it scrobbles tracks only if you're connected to the 'net. Doesn't do any caching, or offline scrobbling at all. But, for the basics, it works just fine.


Images

  • Picture_1_small_thumbnail

Comments


Filter by Vote

24 Comments:

0 Comment_goodvote_normal Comment_badvote_normal 2 szczepek Says:   

It’s good Add-On, but in my Songbird 0.5pre sometimes don’t send nothing to last.fm.

0 Comment_goodvote_normal Comment_badvote_normal 0 tgandur Says:   

this does not work with 0.4….

please fix it because I do like Songbird but also love last.fm……

0 Comment_goodvote_normal Comment_badvote_normal 0 TheOneRing Says:   

works fine for me Win XP and Songbird 0.4

1 Comment_goodvote_normal Comment_badvote_normal 0 topdownjimmy Says:   

This doesn’t seem to work with special characters. The band Feu Thérèse is submitted as Feu Th?r?se.

0 Comment_goodvote_normal Comment_badvote_normal 0 timo Says:   

The problem is that submission string is not UTF-8 encoded. To fix this you should change escape function to encodeURIComponent function in audioscrobbler.js

0 Comment_goodvote_normal Comment_badvote_normal 0 stevel Says:   

thanks Timo. 0.0.4 incorporates your fix.

0 Comment_goodvote_normal Comment_badvote_normal 0 Michael Marino Says:   

This isn’t working fully for me…

It will send information about what I’m listening to, but won’t scrobble the track.
Online it will say I’m “Now Listening” to a song, but once it’s done there’s nothing to show for it.

0 Comment_goodvote_normal Comment_badvote_normal 0 moshy Says:   

I was just curious, was it something in the audioscrobbler protocol that changed or Songbird, that made the old one incompatible all this time? Or did you guys just want to implement it differently this time?

1 Comment_goodvote_normal Comment_badvote_normal 0 olerik Says:   

When i listen to music from my library it records the song two times on last.fm.

And when i’m listening on songs from the iPod library or from the library on my external hdd by using the “iPod Device Support” and “USB mass-storage device” addons it doesn’t record them at all.

(Songbird 0.4)

0 Comment_goodvote_normal Comment_badvote_normal 0 postkar Says:   

If it’s recorded twice, u probably have ur original Last.FM application running. Same goes for iScrobbler or any other app.

0 Comment_goodvote_normal Comment_badvote_normal 0 timo Says:   

I have the same problem. Recently listened tracks are shown once, but the tracks are shown twice in the charts.

I compared the behavior of the extension and the official Last.fm application with Wireshark.

It seems that the extension does not follow the first rule of submission: “The track must be submitted once it has finished playing. Whether it has finished playing naturally or has been manually stopped by the user is irrelevant.”.
http://www.audioscrobbler.net/development/protocol/

The submission is done when half of the track has been played.

I don’t know if this is causing the problem. I have send the Wireshark traces to last.fm support for comment.

0 Comment_goodvote_normal Comment_badvote_normal 0 jachuo Says:   

I have Songbird 0.4 and it’s send nothing to Last.Fm. I’m sure that i write true password and user name. Do you have some ideas?

0 Comment_goodvote_normal Comment_badvote_normal 0 timo Says:   

Now I know what is causing the problem. it is the rating parameter in the submission. The official application seems to leave rating empty. I changed the extension in the following way and it works.


--- audioscrobbler.js.orig 2008-02-01 15:41:05.000000000 +0200
+++ audioscrobbler.js 2008-02-01 15:59:46.000000000 +0200
@@ -114,7 +114,7 @@
audioscrobbler.scrobbleTrack = function(artist, track, album, duration,
trackNum, startTime) {
var source = "P";
- var rating = "L";
+ var rating = "";

// Can only scrobble if we're logged in
if (!this.loggedIn())

It is easy to test. Tracks played steps twice with the unmodified extension and once with modified extension.

0 Comment_goodvote_normal Comment_badvote_normal 0 rodsanchez Says:   

If it’s not working with you guys, try to change the option “Block websites from viewing information about media in my Library and devices”, located in the Web Integration tab; Tools > Options.

It worked with me!!

0 Comment_goodvote_normal Comment_badvote_normal 0 manonfire4 Says:   

Worked for me as well, thank you!

0 Comment_goodvote_normal Comment_badvote_normal 0 TheOneRing Says:   

I don’t know why but since the last update it doesn’t work as good as before so now sometimes it transmit data and sometimes not.

0 Comment_goodvote_normal Comment_badvote_normal 0 ruin3 Says:   

Very nice AddOn, scrobbling without any problems for me (at least after rodsanchez’ tip).

Still, I also have this problem with "special" characters, but I, frankly, don’t understand the solution provided by timo…

What exactly can I do so it doesn’t screw up my charts? :D

Thanks in advance for your help.

0 Comment_goodvote_normal Comment_badvote_normal 0 stevel Says:   

ruin3: This should be fixed in the new version (0.0.4) I just uploaded.

0 Comment_goodvote_normal Comment_badvote_normal 0 ffachopper Says:   

I installed it on my 0.4 version recently downloaded, and it doesn’t seem to work.

Hope it get’s a fix soon

0 Comment_goodvote_normal Comment_badvote_normal 0 Luckyrat Says:   

Works great most of the time, even with “Block websites from viewing information about media in my Library and devices” option enabled.

It doesn’t work when playing tracks directly from a USB mass storage device.

Version: 0.0.4

Songbird version: 0.5pre20080305windows-i686-msvc8

USB device: Samsung YH-J70

0 Comment_goodvote_normal Comment_badvote_normal 0 raffel Says:   

Works with 0.6, nice!

0 Comment_goodvote_normal Comment_badvote_normal 0 Aforb Says:   

This is great! I’ve been searching for this for ages (read:days) but it still makes me happy.

Thanks guys and gals :)

0 Comment_goodvote_normal Comment_badvote_normal 0 cellarmation Says:   

I am having one small problem with this add on. Am running songbird on a computer with wifi that cuts in and out. If the internet disconnects then re-connects this addon stops uploading data. (Untill i restart songbird) Is it possible for it to try and reconnect when a network connection is found, or just to periodically re-test for a connection?

0 Comment_goodvote_normal Comment_badvote_normal 0 stevel Says:   

I’ll see if I can implement that in the next update.

What do you have to say about this? To comment, please log in or sign up for an account.