full listings » Playback


Last.fm Scrobbling Support necimal

An alternative scrobbler which works through the Last.fm client application.


Last.fm Scrobbling Support



Description

Last.fm is an internet radio station and music community that records the tracks you listen to, and creates charts and personalised radio stations based on your musical tastes.

This extension differs from the other Last.fm extension in that it submits your songs to the official Last.fm client, which is a small program installed on your computer. The Last.fm client then sends the information to the Last.fm server, so Songbird doesn't need to worry about your Last.fm login details. This is the way most other media players submit tracks to Last.fm, and you can open the Last.fm client to view information on the currently playing track, and love/ban songs. The Last.fm client also provides support for offline scrobbling. This extension is now stable, and provides an alternative for users who wish to scrobble tracks through their Last.fm client software, in the same manner as their other media players.

This extension should work on Windows, Mac and Linux. You need to have the official Last.fm client installed. If you don't already have it, you can download it for free.

Please comment if you like this extension, or have any suggestions or bugs to report :-)

Troubleshooting
If it doesn't work, try the following:

  • Make you you have the Last.fm client installed (the red orb in your system tray), and that you are logged in.
  • Does scrobbling work from any other media players? If not, then you probably have a problem with your Last.fm installation or settings.
  • Are there any errors showing in the Last.fm client? For example, your track needs to have artist/title/length information when you start playing it for scrobbling to work.
  • Type "about:config" into the location bar, and change the preference "extensions.songbird-scrobbler.debug" to true. Restart Songbird, and click Tools -> Error Console, and look for songbird-scrobbler "send" and "rcvd" messages.



Release Notes

  • Updated description to better reflect the position of this add-on.



Images

(1)
  • Lastfm_thumbnail
 

Comments

(129)


necimal
necimal

Can anyone give me a command-line path that will launch the Last.fm client?

about 1 year ago
necimal
necimal

...er on Mac I meant to add! The client is already launched automagically on Windows & Linux.

about 1 year ago
Antimethod
Antimethod

This works perfectly!
thanks!

about 1 year ago
Pr1me
Pr1me

0.7pre support please. :))

about 1 year ago
stevel
stevel

woot!

about 1 year ago
GeekShadow
GeekShadow

“You need to already have the official Last.fm client installed.”
Ah… too bad :p

about 1 year ago
gamepr0
gamepr0

that’s hot man, please keep updating this, the audioscrobbler was pretty buggy after a while i guess because of a lack of time spent in new updates.
i love you ^^

about 1 year ago
thejaymo
thejaymo

This works perfectly! Thank you!

about 1 year ago
trentono
trentono

weird bug…Songbird doesn’t scrobble when in mini player mode. Other than that, works great so far.

about 1 year ago
necimal
necimal

thanks, I will follow that up!

about 1 year ago
necimal
necimal

sweet fixed it :)

about 1 year ago
brunods
brunods

Hey, I downloaded the official last.fm client but it won’t scrobble my songs. It starts the client when I start songbird allright. But it won’t scrobble, is there any configuration to be made? I’m using SB 0.5

about 1 year ago
necimal
necimal

Hi there :) Thanks for posting. There is no configuration necessary. Here are a couple of things to try:

  • Are you logged in to the Last.fm client? (Does it show your username in the top left corner, and does it say “scrobbling on” in the bottom right?)
  • Does scrobbling work from any other players on your system? (eg. iTunes, Winamp, Windows Media Player)

If scrobbling works from other players, could you possibly try in the new 0.6 Songbird version? You can get it here: http://blog.songbirdnest.com/2008/06/05/songbir…

Please let me know if you still can’t get it to work in 0.6 and you tried the above! Thanks :)

about 1 year ago
brunods
brunods

I just tried it, it’s a no go. I’m on Gutsy, so I’m not sure with which other player I could test it.

about 1 year ago
brunods
brunods

Hey Hey! I got it working: I didn’t use the default IP adresses for “localhost” on my PC. I changed it and it worked. you should add to the preferences the option to change the host! it’s kinda important, ain’t it?

about 1 year ago
brunods
brunods

Oops, I’m sorry I was just complaining, the extension is awesome, congrats

about 1 year ago
necimal
necimal

Haha when I added that option I had doubts that anyone would ever use it! What happens if you ‘ping localhost’ in a terminal? What did you change it to?
Cheers

about 1 year ago
brunods
brunods

hahah. I changed the IP of it to the eth1 interface’s so that I could broadcast my apache server. Stupid thing to do, I should’ve created a host for apache… But that’s what linux is all about: err err and then make it really nice.

about 1 year ago
necimal
necimal

Fair enough. Actually I just realised you were saying you changed your localhost ip. There actually is an option to change the address and port of the client my extension communicates with, you can get to it by typing “about:config” in the location bar, then searching for “extensions.songbird-scrobbler”. So theoretically you could scrobble via a client on another computer.. although I’ve never tried and i’m not sure on the security policy of the last.fm client. So if you want to have localhost as something different.. just have a play around in about:config.
Cheers

about 1 year ago
brunods
brunods

Any chance there could be integrated iPod scrobbling? =D

about 1 year ago
necimal
necimal

Yeah actually I had thought about that. I’m not at all sure how iTunes talks to the last.fm client. So first i need to get my ipod actually working with songbird, then figure out how to tell the last.fm client about it. Basically just a lot of research, but I will have a crack at it! It would definately be a plus for linux people =)

about 1 year ago
rathel
rathel

Hey, lol I just got this extension working, took me awhile, I guess it only works with playing stuff in your library. Why doesn’t it work with playing tracks off a site? I guess I could download the the tracks, but I don’t really want to do that. I like to just listen to them off of the site.

about 1 year ago
necimal
necimal

Hi, could you tell me what was hard about getting the extension working? It works for me playing tracks off sites. What songbird version are you using? Can you give me the link of a site that doesn’t work? Is it all sites or just some? Cheers

about 1 year ago
rathel
rathel

Hey, I’m using the 0.6rc4 release and it seems to be all websites, I tried “The Hype Machine”, “SkreemR”, and a Few others.

about 1 year ago
necimal
necimal

Do you get any error messages in your Last.fm client? I have a feeling you may see “Can’t scrobble: track too short” or “Need id3 artist name” or something like that. If you are, it’s because you need to let songbird scan for the artist/track names and song length in the website before you start playing the song. Because otherwise when you start playing the song there is no info to send to the last.fm client, so it won’t scrobble. Does that make sense?
If that’s not the problem, I can’t think of any other reasons it wouldn’t be working, because this extension doesn’t interact with the library at all, it just listens for when songbird starts playing a song (regardless of where from), then tells the last.fm client about it.

about 1 year ago
rathel
rathel

I did get those messages when I first was playing from the library, but I get absolutely no response when I try to play from a website.

about 1 year ago
necimal
necimal

Strange, I can’t explain it! Are there any messages related to ‘songbird-scrobbler’ in the error console (Tools -> Error Console)?

about 1 year ago
necimal
necimal

Also could you try with a fresh profile and no other addons? I’d like to figure out what’s going on here…

about 1 year ago
rathel
rathel

Yeah, I actually get 2 after I start playing a song.
First: Error: [Exception… ”’JavaScript component does not have a method named: “getSupportForURI”’ when calling method: [sbICoreWrapper::getSupportForURI]” nsresult: “0×80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)” location: “JS frame :: file:///home/rathel/Desktop/Songbird/components/sbPlaylistPlayback.js :: _callMethodOnAllCores :: line 900” data: no]
Source File: file:///home/rathel/Desktop/Songbird/components/sbPlaylistPlayback.js
Line: 900
Second: Error: [Exception… “Component returned failure code: 0×80040111 (NS_ERROR_NOT_AVAILABLE) [sbIMediaList.getItemByGuid]” nsresult: “0×80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: chrome://songbird-scrobbler/content/scrobbler.js :: anonymous :: line 98” data: no]
Source File: file:///home/rathel/Desktop/Songbird/components/sbPlaylistPlayback.js
Line: 988

about 1 year ago
rathel
rathel

Just tried a new profile and that did not fix anything. Thanks for trying to help though. :)

about 1 year ago
LZRZ
LZRZ

Uh, I feel quite stupid. I’m trying to install it to my Songbird, and I can’t? Am I supposed to click Install? Because I cannot. :/ Is there any other way I can install it?

about 1 year ago
necimal
necimal

@rathel: Thanks, I’ll have a look at that
@LZRZ: When you click install, you should get a dialog asking if you want to install the extension. If you don’t, try visiting this site with a normal browser, downloading the *.xpi file to your hard drive, then drag it into songbird and it should ask you to install :)

about 1 year ago
rathel
rathel

necimal, I just tried this on Vista on it works, it must be a problem on Ubuntu or something…

about 1 year ago
necimal
necimal

Yeah, I can reproduce it on Ubuntu too. I think it might be a bug in songbird but i’ll look into it :)

about 1 year ago
bwald
bwald

Hey, the executable for the Last.fm client in Mac is located in /Applications/Last.fm.app/Contents/MacOS/Last.fm. I hope that helps.

about 1 year ago
necimal
necimal

Thanks bwald! could you please try this for me: in the location bar, type about:config, search for the option called “extensions.songbird-scrobbler.command”, and change its value to ”/Applications/Last.fm.app/Contents/MacOS/Last.fm”. Then can you tell me if the last.fm client launches automatically with Songbird?
That setting is an override for the path to find the Last.fm client, before it tries the defaults.
Thanks so much :)

about 1 year ago
doogie
doogie

Hey necimal, is there any way to use your plugin without using Lastfm client? It’s pretty awkward to have both programs opened at the same time (with a shitty computer, can’t play while listening to music).
If you find a way, let me know.
Great work tho!

about 1 year ago
wesr
wesr

Command for opening Last.fm app for Mac: open -a Last.fm.app

about 1 year ago
Silme_EA
Silme_EA

It doesn’t work for me. I’m using Vista with Songbird 0.6 and last last.fm. How can I get it to work?

about 1 year ago
necimal
necimal

doogie: No, you need the last.fm client, but it only uses 6-7mbs ram, and can be minimized to the task bar, so i’m surprised that it is slowing your computer that much! There is another songbird addon that scrobbles directly to last.fm, but I believe that this is the more reliable way to do it (it is also recommended by last.fm). Have a look here if you’re interested: http://addons.songbirdnest.com/addon/106

wesr: if you set the option above in my last post to “open -a Last.fm.app”, does it automatically launch? (you might have to set it to the full path of the open command, for example /bin/open. try typing “whereis open” on a command line to find out its full path) Sorry I don’t know alot about the mac command line! cheers

slime: Some things to try: Do you have the last.fm client open? (the little red orb in your task bar) Are you logged in to the last.fm client? Does scrobbling work from any other media players? When you try to play a song, do you get any error messages in the last.fm client? For example, if any of the artist, title, or track length is missing when you start playing the song, it won’t be able to scrobble and the last.fm will spit out an error. Let me know if you still can’t get it going!

about 1 year ago
Silme_EA
Silme_EA

I have last.fm open, I’m logged, scrobbling works from iTunes and WMP, last.fm just shows standart invitation like nothing is playing, but no errors. and you may not explain me, where last.fm is (“the little red orb in your task bar”), i know it :)). and, btw, it’s black :)). feel free to speak as you wish, I’ll understand :))

about 1 year ago
necimal
necimal

Interesting… how come yours is black? ;)
can you see any errors in the songbird error console? basically all my extension does is open a quick tcp connection to localhost:33367 to transmit a start/stop/pause command, and you can change the host/port in about:config. My only guess is perhaps a firewall is blocking songbird from communicating with the last.fm client? Although I would imagine you would have already noticed this if other players work.
If there are no songbird-scrobbler related errors in the error console, and no firewall getting in the way, then the only thing I could suggest would be to get your hands dirty with a packet sniffer and figure out why other media players are getting through and songbird isn’t. Although I expect that this will just be something simple we have overlooked :) But keep me posted! If you figure out what was wrong it will definitely be helpful to me!
When I get time I will add a debugging mode to this extension so that it can record all requests/responses it sends to the last.fm client.

about 1 year ago
necimal
necimal

Silme, I have added debugging to the extension, if you follow the instructions at the top of the page, what messages do you see? cheers

about 1 year ago
Silme_EA
Silme_EA

I like black more and tuned it a bit :).
and I sniffed a little… but I can’t see any connections from songbird to last.fm (maybe I’m not a hacker enough to see it :)). with firewall and Internet turned off there is nothing too. when sniffing iTunes I can see only last.fm’s own packets (sending info to audiscrobler site, downloading images, etc.), but I suppose iTunes communicates with last.fm very different way than your plug-in.
I’ll try to change something in settings, with hope of success.

about 1 year ago
Silme_EA
Silme_EA

oh, I didn’t notice your last post typing previous message, so I’ll try.

about 1 year ago
Silme_EA
Silme_EA

here’s what I get:
songbird-scrobbler: debugging on
songbird-scrobbler: host: localhost
songbird-scrobbler: port: 33367
songbird-scrobbler: send: STOP c=sbd
songbird-scrobbler: send: START c=sbd&a=Markize&t=Poussiere De Vie&b=Transparence&l=259&p=file:///d:/music/markize/markize_-transparence-2007-vic/04_markize-_poussiere_de_vie.mp3
songbird-scrobbler: error: NS_ERROR_NET_RESET
songbird-scrobbler: error: NS_ERROR_NET_RESET

about 1 year ago
necimal
necimal

A bit of googling reveals:
NS_ERROR_NET_RESET: “The connection was established, but no data was ever received.”
(so I assume that the cast.fm client closed the connection early?)
Ok, I’m lost. I’ll ask on the forums!
Can you see anything useful in the last.fm client log (Help -> Diagnostics -> View Log)?

about 1 year ago
Silme_EA
Silme_EA

nothing at all in the log :(((. just handshakes with audioscrobler, and iTunes stuff. ask me if it will be needed something.

about 1 year ago
meshuggahner
meshuggahner

this was working perfectly until the last update (0.6.5). when playing an album the first song gets missed and then scrobbles ok. i can get around this by pausing then playing again tho…

about 1 year ago
wesr
wesr

@necimal, no luck on the auto-launch. sorry

about 1 year ago
Slate8
Slate8

Yaay – works really well for me on Ubuntu, thanks!

about 1 year ago
necimal
necimal

@meshuggahner: would you be able to turn on debugging (see above) and paste the log here? I think I know what’s going on but the log would be helpful :)

about 1 year ago
necimal
necimal

Sorry about all the updates!
@meshuggahner: try it in the new version, I’m pretty sure i fixed it :)
@wesr: would you be able to try it using ”/Applications/Last.fm.app/Contents/MacOS/Last.fm”?
cheers

about 1 year ago
JonTHn
JonTHn

I tried on Mac setting /Applications/Last.fm.app/Contents/MacOS/Last.fm and that seems to work.

about 1 year ago
meshuggahner
meshuggahner

@necimal still the same problem
i cleared the log and started an album – first track (Seventh Wave) didn’t scrobble the next one did – going back to 0.6.2 for now
here’s the output – no songbird-scrobbler errors…
Warning: XUL box for sb-device-get-info-command element contained an inline sb-device-control child, forcing all its children to be wrapped in a block.
Source File: chrome://ipod/content/xul/iPodDeviceSummaryPage.xul?device-id={9036b528-08f8-c86f-c183-082c9bb060c5}
Line: 0
Warning: XUL box for sb-device-eject-command element contained an inline sb-device-control child, forcing all its children to be wrapped in a block.
Source File: chrome://ipod/content/xul/iPodDeviceSummaryPage.xul?device-id={9036b528-08f8-c86f-c183-082c9bb060c5}
Line: 0
songbird-scrobbler: send (1): STOP c=sbd
songbird-scrobbler: rcvd (1): OK
songbird-scrobbler: send (2): START c=sbd&a=Devin Townsend&t=Seventh Wave&b=Ocean Machine – Biomech&l=410&p=
songbird-scrobbler: rcvd (2): OK
songbird-scrobbler: send (3): RESUME c=sbd
songbird-scrobbler: rcvd (3): OK
songbird-scrobbler: send (4): STOP c=sbd
Error: gBrowser is null
Source File: chrome://songbird/content/bindings/mediaPages.xml
Line: 272
songbird-scrobbler: rcvd (4): OK
songbird-scrobbler: debugging on
songbird-scrobbler: host: localhost:33367
songbird-scrobbler: send (0): STOP c=sbd
songbird-scrobbler: rcvd (0): OK
songbird-scrobbler: send (1): START c=sbd&a=Devin Townsend&t=Life&b=Ocean Machine – Biomech&l=271&p=file:///K:/iPod_Control/Music/F47/IAZP.m4a
songbird-scrobbler: rcvd (1): OK
songbird-scrobbler: send (2): PAUSE c=sbd
songbird-scrobbler: rcvd (2): OK
Blocklist::onXMLLoad: there was an error during load
songbird-scrobbler: send (3): RESUME c=sbd
songbird-scrobbler: rcvd (3): OK
songbird-scrobbler: send (4): STOP c=sbd
songbird-scrobbler: rcvd (4): OK
songbird-scrobbler: send (5): START c=sbd&a=Devin Townsend&t=Night&b=Ocean Machine – Biomech&l=285&p=
songbird-scrobbler: rcvd (5): OK
songbird-scrobbler: send (6): PAUSE c=sbd
songbird-scrobbler: rcvd (6): OK

about 1 year ago
aquariumdrinker
aquariumdrinker

Ubuntu H.H., I’m seeing some success when playing songs from websites, but not much. When Songbird should be sending the track info on play start, I’m seeing two errors in debug mode. One:
Error: [Exception… ”’JavaScript component does not have a method named: “getSupportForURI”’ when calling method: [sbICoreWrapper::getSupportForURI]” nsresult: “0×80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)” location: “JS frame :: file:///opt/Songbird/components/sbPlaylistPlayback.js :: _callMethodOnAllCores :: line 900” data: no]
Source File: file:///opt/Songbird/components/sbPlaylistPlayback.js
Line: 900
Two:
Error: [Exception… “Component returned failure code: 0×80040111 (NS_ERROR_NOT_AVAILABLE) [sbIMediaList.getItemByGuid]” nsresult: “0×80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: chrome://songbird-scrobbler/content/scrobbler.js :: anonymous :: line 153” data: no]
Source File: file:///opt/Songbird/components/sbPlaylistPlayback.js
Line: 988

about 1 year ago
necimal
necimal

@aquarium: Sorry, scrobbling from websites on linux doesn’t work because of a gstreamer bug. The songbird devs are working on this :)
@meshuggahner: Weird, the last.fm client is reponding with “OK” to your play command, and yet you say it doesn’t scrobble… I will keep looking into it! I think possibly another extension is interfering.. would you be able to try disabling your other extensions? Also, could you try doing a “Refresh UI” and then starting a new album? Strange I can’t reproduce this problem…

about 1 year ago
Erro-Silvae
Erro-Silvae

Works great, except with Russian song titles (maybe in other weird languages too, does the heavy metal umlaut work? not sure). They get all weird and wacky.
Any idea how to fix it? SongBird displays the characters correctly, but last.fm doesn’t.
Be well,
Aljosha

about 1 year ago
CanuckErrant
CanuckErrant

Yeah, the plugin needs Unicode support, which it doesn’t currently seem to have.

about 1 year ago
torswin
torswin

I agree, it really needs Unicode support.

about 1 year ago
tobbe303
tobbe303

Oh yeah. With unicode support this would be just about perfect!

about 1 year ago
johnnydeep
johnnydeep

Doesn’t work for me with Songbird 0.6.1 and the latest last.fm-edition. Always tells me that the track is part of a directory set not to scrobble. But that’s wrong and the same tracks get scrobbled with Winamp :-(

about 1 year ago
johnnydeep
johnnydeep

Here’s the logentry from Songbird:
songbird-scrobbler: send (1): START c=sbd&a=U2&t=Sunday Bloody Sunday&b=18 Singles&l=0&p=file:///d:/eigene%20dateien/eigene%20musik/u2/18%20singles/11%20-%20sunday%20bloody%20sunday.wma
logentry from last.fm used with Songbird:
080630 13:36:14 – 00000F50 – CPlayerListener::ReceiveLine(644) – L3
Line received: START c=sbd&a=U2&t=Sunday Bloody Sunday&b=18 Singles&l=0&p=file:///d:/eigene%20dateien/eigene%20musik/u2/18%20singles/11%20-%20sunday%20bloody%20sunday.wma
logentry from last.fm used with Winamp:
080629 11:41:08 – 000003D4 – CPlayerListener::ReceiveLine(644) – L3
Line received: START c=wa2&a=Hole&t=Awful&b=Celebrity Skin&m=&l=196&p=D:\Eigene Dateien\Eigene Musik\Hole\Celebrity Skin\02 – Awful.mp3

about 1 year ago
jpgarnham
jpgarnham

International characters don’t look fine… Try with any Sigur Rós song and the thing looks weird and doesn’t scrobble at all.

about 1 year ago
Slate8
Slate8

I’d like to add my voice to the many requesting unicode support. When trying to play artists with names like http://www.last.fm/music/Trentem%C3%B8ller it does not scrobble and puts odd characters in.


The same tracks scrobble fine from my iPhone’s native last.fm application.

about 1 year ago
Payton
Payton

I add myself to the request of support for unicode characters. If there’s any way in which I can help you, let me know, although I know pretty much nothing about compiling, encoding et al, if there’s anyway I can help you, don’t hesitate on asking, ok? I’ll be glad to help!
Greetings!

about 1 year ago
necimal
necimal

@Erro-Silvae, CanuckErrant, torswin, tobbe303, jpgarnham, Slate8, Payton et al: Unicode support :)
Try it out, tell me if it doesn’t work!
@meshuggahner: can you test the new version, see if I’ve fixed your bug? I’ve changed the way it scrobbles, so the order in which commands are sent shouldn’t get mixed up anymore
@johnnydeep: strange, can you test the new version?.. perhaps last.fm doesn’t like having file:// urls, but I don’t see why only your one complains!
salut

about 1 year ago
nickzeff
nickzeff

Another vote for unicode support! Lindstrøm & Prins Thomas do not play nicely with the scrobbler (or indeed with this webpage it would seem).
songbird-scrobbler: send (15): START c=sbd&a=Lindstrøm && Prins Thomas&t=Boney M Down&b=Lindstrom && Prins Thomas&l=229&p=file:///media/shared/media/Music/Artists/k-z/Lindstr%C3%B8m%20&&20Prins%20Thomas/Lindstr%C3%B8m%20x%x%20Prins%20Thomas%20(2005)/03.%20Boney%20M%20Down.mp3
songbird-scrobbler: rcvd (7): ERROR: fier:

about 1 year ago
necimal
necimal

nickzeff, does it work for you with the new plugin version (0.7.0)? I tried that name & it seems to work fine for me :)

about 1 year ago
GeekShadow
GeekShadow

Necimal I ask you what are the advantages compared to this extension :
http://addons.songbirdnest.com/addon/106 ???

about 1 year ago
meshuggahner
meshuggahner

sorry necimal, same problem with 0.7.
when starting an album (or just playback in general) i always get this error after songbird-scrobbler appears to have sent and received ok:
Error: gBrowser is null
Source File: chrome://songbird/content/bindings/mediaPages.xml
Line: 272
and they are the songs not scrobbling. this is also in the output i posted above. so not sure if that’s interfering with anything…
haven’t had a chance to disable extensions yet – will try and play around with it this week. on that point i’m not using any ‘out-of-the-ordinary’ extensions…

about 1 year ago
Slate8
Slate8

Hey, thanks so much for the unicode support – works a treat! Cheers!

about 1 year ago
johnnydeep
johnnydeep

@necimal
Found the responsible bug: The last.fm-folder (in my case C:\Programme\last.fm\) necessarily needs to be “scrobbable”. But if it is and I play a song in an unscrobbable folder the exception will be ignored.
Perhaps it’s a part of the file:///-thing, but it would be great if it could be fixed anyway. Thanks for the tool so far, great work!

about 1 year ago
necimal
necimal

@geekshadow: my plugin works through the official last.fm client, so it supports offline scrobbling, doesn’t require you to enter your login details etc, and plays nicer with last.fm. This is the way that last.fm recommends scrobbling, and the way most of the other plugins out there work. But if you don’t want to install the official last.fm client, then stevel’s extension is the way to go (I prefer this way)
@meshuggahner: gah! I wonder why it doesn’t work?! PS I get that error too when I start songbird.
@Slate8: no worries!
@johnnydeep: I will look into it when i get a chance, & see if that happens on my machine too. Thanks for investigating :)

about 1 year ago
meshuggahner
meshuggahner

ok, I think I'm getting somewhere with this problem. Typically I play the songs through my ipod library as I use songbird at work. I tried playing through the local library - but the same problem - with my ipod still connected that is. When disconnected completely scrobbling works fine. I guess the big question is why does an older version like 0.6.2 work ok for my ipod but 0.7 doesn't. Hope this helps you isolate the problem.

about 1 year ago
necimal
necimal

ok, I think I just got somewhere with your problem! I went digging through the code changes between 0.6.2 and 0.6.5, and found a strange bug where e.g. if you switch to the mini player it sent a stop command to the client, even though the music was still playing. Long story short, I think it was related to your bug.. but I have been wrong! I think it is definately something to do with the ipod addon being there, too bad I can't get my ipod to play nice with songbird, but if this hasn't fixed it, then I'll have another go. If 0.7.1 is still broken, it would be great if you could try versions 0.6.3 and 0.6.4 and tell me which one the bug showed up in so I can have a more thorough look through what I changed.
Cheers for your dedication though!

about 1 year ago
meshuggahner
meshuggahner

FIXED! That was the problem. Keep up the great work necimal!

about 1 year ago
lajevardi
lajevardi

Not working for me :(

songbird-scrobbler: send (0): STOP c=sbd
songbird-scrobbler: error (0): NS_ERROR_NET_RESET

songbird-scrobbler: send (1): START c=sbd&a=Amon Amarth&t=Lying Breed&b=The Crusher&l=334&p=file:///g:/music/amon%20amarth/2001.%20the%20crusher/01.bastards%20of%20a%20lying%20breed.mp3

songbird-scrobbler: error (1): NS_ERROR_NET_RESET

about 1 year ago
necimal
necimal

@lajevardi: NS_ERROR_NET_RESET is the same error Silme_EA was getting, basically it means a connection was made with the Last.fm client, but it didn't respond.. I never figured out what caused it, and you are only the second person to report it! Perhaps you could try with a fresh profile and no other plugins installed? I would love to know what causes that error. My other idea was maybe some sort of firewall software like zone alarm?

about 1 year ago
lajevardi
lajevardi

@necimal: in windows Vista localhost (not 127.0.0.1) can't be resolved correctly, because of its default supporting for IPv6. I've comment the line "::1 localhost" in "..\system32\drivers\etc\hosts". then I could access my localhost and extension starts to work like a charm. I think this is a problem for all Vista users.
many thanks for your reply.

about 1 year ago
necimal
necimal

Interesting, I have vista with ipv6 and don't have that problem. What happens if you go start->run-> "cmd", and type "ping localhost" (without the commented line in your hosts file)

If localhost can't be resolved, then either you or a program has changed a setting you weren't supposed to, or you have found a bug in Vista.

Another workaround you could try would be to visit about:config, then change "extensions.songbird-scrobbler.host" from "localhost" to "127.0.0.1". I wouldn't want to set that as the default, because it wouldn't be forwards compatible with IPv6, and localhost should always be resolvable on any machine.

Thanks for your investigation though! It's a very strange bug.

about 1 year ago
lajevardi
lajevardi

welcome ;)
I've tried to access my localhost (with original hosts file) and i couldn't access that while I can access 127.0.0.1 with the original file. and my cmd log:

Pinging windows-desktop [::1] from ::1 with 32 bytes of data:
Reply from ::1: time less than 1ms
Reply from ::1: time less than 1ms
Reply from ::1: time less than 1ms
Reply from ::1: time less than 1ms
Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

yeah! that's working, I think.
thanks for your reply

about 1 year ago
necimal
necimal

I see. Thanks lajevardi! I think what is happening is a bug in mozilla due to IPv6, though I can't be sure. I will ask the songbird devs, but for now, if you don't want to hack up windows configuration files, you can change the "extensions.songbird-scrobbler.host" setting as mentioned above :)

about 1 year ago
lajevardi
lajevardi

welcome.
I'm goin' to change :D

about 1 year ago
necimal
necimal

I have rewritten this extension, in time for Songbird 0.7. It should be much faster now, and lajevardi's bug is now fixed by default. It also includes all the previously fixed problems, including unicode support, and meshuggahner's bug. Web scrobbling on Linux should also be fixed in Songbird 0.7. Thanks to everyone for helpling test this extension!

about 1 year ago
joux
joux

@rathel @necimal

I had the same exception as rathel on ubuntu 8.04 and SB 0.6.1:
Error: [Exception… ”’JavaScript component does not have a method named: “getSupportForURI”’ when calling method: [sbICoreWrapper::getSupportForURI]” nsresult: “0×80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)” location: “JS frame :: file:///home/rathel/Desktop/Songbird/components/sbPlaylistPlayback.js :: _callMethodOnAllCores :: line 900” data: no]
Songs wouldn't play. And I think I figured out why: When the Last.fm client was auto-launched, it grabbed hold of my soundcard, so SB couldn't access it. When I started SB first, and then launched last.fm manually, it would work - and the last.fm client gives me an error about not being able to access my alsa soundsystem, beceause now SB controls the soundsystem first.

Maybe it is necessary to delay the launch of the last.fm client somehow to prevent this? (although I thought alsa could handle and mix two clients.)

about 1 year ago
necimal
necimal

Mmmm, I had actually come across that on Ubuntu but forgotten about it. Basically, from what I can tell, the Last.fm client sucks, and takes over ALSA exclusively. I fixed it by playing around in the Last.fm client settings, and changing it to a different sound driver (OSS maybe?). If you don't use the client to listen to radio, then it doesn't even matter if it can't put out any sound. Anyway I don't have linux installed at the moment and can't remember exactly how I fixed it, so if you find the setting to change, could you please post it here?

Thanks :)

about 1 year ago
joux
joux

Well, on my Hardy standard installation, there is just the ALSA driver and the last.fm client doesn't offer anything else.

Can I suggest a dirty workaround? Don't autolaunch the last.fm client when SB is started, but when the first playback has been started. Then we can be sure that SB has been able to get access to the ALSA system. The last.fm client would still annoy the user with some "ALSA unavailable" message, but that's better than SB not working.

In the long run, it would be cool to convince the last.fm developers to add a command line option like --nosound. I think their client is pretty often just used as scrobbler, so it doesn't need to get sound access in some cases.

about 1 year ago
hubbird
hubbird

Recent versions of the last.fm Linux client (1.5.0, which is in the last.fm apt repository) are found at /usr/bin/last.fm not /usr/bin/lastfm - if the client doesn't launch with Songbird, that's probably why.

A workaround is to create a symlink.

about 1 year ago
necimal
necimal

@hubbird: cheers for the heads up, I'll upload a new version shortly which can handle both names.
@joux: I don't want to auto-launch the last.fm client on the first song play, because the client could take a couple seconds to startup, which means that the first scrobble won't work, unless I add more handling to give it a few seconds before scrobbling the track, which then results in the the client being a few seconds behind songbird in the track's played length (which is probably not an issue). But it ends up being quite a messy hack, for what is essentially a bug in the last.fm client (ALSA was designed to handle multiple players, so I don't know what's going on there). Unfortunately, I don't have a linux install at the moment so can't really investigate it much further. I swear I found a setting in the last.fm client that fixed it, but it was a few months ago, so can't remember. But thanks for your help & support!

about 1 year ago
grange85
grange85

I have a problem that some scrobble fine from iTunes are not scrobbling from Songbird.
Songbird 0.7.0 Mac
Add on 0.9.1
Mac OS X

Here's the debugging output when a song fails

songbird-scrobbler: send (0): STOP c=sbd
songbird-scrobbler: rcvd (0): OK
songbird-scrobbler: send (1): START c=sbd&a=Reparata && The Delrons&t=Panic&b=The Best of Reparata && The Delrons&l=134&p=file:///Users/Hazel/Music/Sorted/Reparata%20&&%20The%20Delrons/The%20Best%20of%20Reparata%20&%20The%20Delrons/Reparata%20&%20The%20Delrons_The%20Best%20of%20Reparata%20&%20The%20Delrons_07_Panic.mp3
songbird-scrobbler: rcvd (1): ERROR: fier:

(the last.fm error console has similar output...

===== Saturday, 23 August 2008 23:20:27 =====
080823 22:20:32 - 0x201cc00 - ReceiveLine(644) - L3
  Line received: STOP c=sbd

080823 22:20:32 - 0x201cc00 - SendLine(665) - L4
  Sending: OK

080823 22:20:32 - 0x201cc00 - ReceiveLine(644) - L3
  Line received: START c=sbd&a=Reparata && The Delrons&t=Captain of Your Ship&b=The Best of Reparata && The Delrons&l=148&p=file:///Users/Hazel/Music/Sorted/Reparata%20&&%20The%20Delrons/The%20Best%20of%20Reparata%20&%20The%20Delrons/Reparata%20&%20The%20Delrons_The%20Best%20of%20Reparata%20&%20The%20Delrons_02_Captain%20of%20Your%20Ship.mp3

080823 22:20:32 - 0x201cc00 - RunListener(185) - L1
  ParseException: fier:

080823 22:20:32 - 0x201cc00 - SendLine(665) - L4
  Sending: ERROR: fier:

)

Any help appreciated and thanks for the (otherwise) great plugin

about 1 year ago
necimal
necimal

My bad.. you will notice in the url, the ampersands are supposed to be escaped by double ampersand (&&), but only the first one is. Try 0.9.2, should be fixed!

about 1 year ago
hubbird
hubbird

I get a "Won't scrobble: track is in directory set to not scrobble" error unless I've set tracks from /usr/bin to be scrobbled in the last.fm client (1.5.0.26435) in Ubuntu.

Not sure if this is a problem with the last.fm client or the Songbird add-on.

about 1 year ago
necimal
necimal

Strange, could you post a log? Thx

about 1 year ago
m6arate
m6arate

any chance of ipod scrobbling support? I saw a comment posted months ago but no real follow up

about 1 year ago
necimal
necimal

Probably not, since there is now an official last.fm add-on, and I want to work more on the music recommendations add-on. However, if anyone else wants to do it, i would be happy to publish the changes ;)

about 1 year ago
Janzomaster
Janzomaster

I would really love Ipod scrobbling support

about 1 year ago
Zalocin
Zalocin

Hi.

Scrobbling with the official client gives me a "Can't scrobble. The track is too short" error-message. Does anyone have a similar problem?

about 1 year ago
necimal
necimal

Zalocin: If songbird hasn't read the track metadata when you start playing the song, the addon will get the track length as zero, then send that to the last.fm client. Make sure in the songbird library the length is listed as longer than 30 seconds before you try to play the song. If that doesn't fix it, then try enabling debugging (see above) and post a log! Thanks :)

If anyone wants to work on iPod support, feel free! I'd be happy to add it.

about 1 year ago
lwillis
lwillis

I get the "Can't scrobble: track too short" error consistently (This example is on a track that's 1hr 4m 15s long)

songbird-scrobbler: send (0): START c=sbd&a=Ferry Corsten&t=Dance Valley Festival 2007 Mix&b=Dance Valley Festival 2007 Mix&l=3855.804&p=file:///c:/documents%20and%20settings/lwilli/my%20documents/my%20music/ferry%20corsten/dance%20valley%20festival%202007%20mix/dance%20valley%20festival%202007%20mix.mp3

But it also happens on shorter tracks

songbird-scrobbler: send (0): START c=sbd&a=Mint Royale&t=Singin' In The Rain&b=See You In The Morning&l=208.875&p=file:///c:/documents%20and%20settings/lwilli/my%20documents/my%20music/mint%20royale/see%20you%20in%20the%20morning/05%20singin%27%20in%20the%20rain.mp3
songbird-scrobbler: rcvd (0): OK
songbird-scrobbler: send (1): RESUME c=sbd
songbird-scrobbler: rcvd (1): ERROR: RESUME received without a preceding START

I wonder if it's anything to do with the last ERROR reported by the client.

Version numbers are:
Songbird:Version: Songbird 1.0.0, Build 860 (20081124135419)
Last.fm scrobbling support: 1.0
Last.fm client: 1.5.2.38918

about 1 year ago
squeezypie
squeezypie

Hi, does this extension support scrobbling for iPod plays? If so, could you help me to get it working? :D Thanks! This is the only thing drawing me away from SongBird so I'll be incredibly excited when there's a way around it.

about 1 year ago
benexclaimed
benexclaimed

This is so much better than the official client. I don't care much about iPod support, but I hope that, at the very least, this keeps working until last.fm officially supports Songbird. Great work.

about 1 year ago
necimal
necimal

@lwillis, thanks for the bug. It's not the last ERROR that's causing the problem. If you look in the START message my add-on sends to the last.fm client, songbird is reporting your track lengths as 3855.804 and 208.875 seconds respectively. I have only ever seen this reported as whole numbers. I wonder why that is. I would bet though that the last.fm client doesn't know how to handle the decimal point, which is why it is complaining about the length. I'll try to do an update that forces the seconds to get rounded to a whole number, that should fix it :D
@squeezypie, Thanks, sorry not yet, and not something I've had on my to-do list, since I've not found songbird's iPod support to be very reliable, so I still use iTunes to manage my iPod (!).. and last.fm works fine for that so far. One day, maybe :D
@benexclaimed, thanx for the support! I don't know whether last.fm will ever support Songbird, since songbird has it's own integration, and if last.fm automatically added both, it would mess up profiles. Not ideal, I guess.

about 1 year ago
necimal
necimal

@lwillis, I've uploaded version 1.0.1, which I hope will fix your bug. Thanks for the detailed report, it made it easy to diagnose! I would appreciate knowing whether you have better luck with this version, if you get a chance to try it :)

about 1 year ago
Tuwe
Tuwe

Works well so far! Thumbs up!

about 1 year ago
benexclaimed
benexclaimed

I'm now getting a "Track Too Short" error. I'm trying to look at the last.fm client's log to find the relevant parts, but I'm really not sure. I see that the client says it's been unable to extract MBID data (which is related to MusicBrainz, I believe, which is what I"ve used to tag this particular EP (Yeah Yeah Yeahs, "Is Is")) and that the tracks are all too short, at zero seconds (which obviously isn't the case).

Using the latest version of this extension. See below for a snippet of the log (I've deleted a lot of the lines, many of which were just a repeat of the "track too short" error):

090126 23:18:28 - 00000D04 - CPlayerConnection::OnStart(92) - L3
  Starting new track 'Yeah Yeah Yeahs ? 10x10' Goal: 235

090126 23:18:28 - 00000D04 - CPlayerListener::SendLine(665) - L4
  Sending: OK

090126 23:18:28 - 00000D04 - CPlayerListener::ReceiveLine(644) - L3
  Line received: RESUME c=sbd

090126 23:18:28 - 00000D04 - CPlayerConnection::OnResume(172) - L2
  RESUME received without a preceding START

090126 23:18:28 - 00000D04 - CPlayerListener::RunListener(190) - L1
  BadCommandException: RESUME received without a preceding START

090126 23:18:28 - 00000D04 - CPlayerListener::SendLine(665) - L4
  Sending: ERROR: RESUME received without a preceding START

"090126 23:18:28" - "00000ba8" - ScrobblerPostRequest::request ( 821 ) - L3
   [id: 0 ] "s=9c651f51b59d4f54847e0db5922c3579&a=Yeah%20Yeah%20Yeahs&t=10x10&b=Is%20Is&l=0&n=&m="

090126 23:18:28 - 00000BA8 - LastFmApplication::onAppEvent(823) - L2
  Failed to extract MBID for: file:///C:/Documents and Settings/Ben/Desktop/Shared Files/Music/Yeah Yeah Yeahs/(2007) Is Is/Is Is (05) 10x10.mp3

"090126 23:18:28" - "00000ba8" - ArtistMetaDataRequest::start ( 35 ) - L3
   "Yeah Yeah Yeahs"

"090126 23:18:28" - "00000ba8" - Request::request ( 262 ) - L3
   "ArtistMetaData" initiated: "ws.audioscrobbler.com/1.0/rw/xmlrpc.php"

090126 23:18:28 - 00000BA8 - MooseUtils::scrobblableStatus(184) - L3
  Track length is 0 s which is too short, will not submit.

about 1 year ago
benexclaimed
benexclaimed

You know what? Just disregard my post. I see there was some problem with my metadata and Songbird wasn't able to read track lengths (though none of my other media players have had a problem). It's not your bug.

about 1 year ago
amygdala
amygdala

i'm having an interesting issue using this extension on the mac: everytime the song changes while the last.fm client is running, i get TWO notifications from it simultaneously... it's not broken, but it is quite intrusive.. maybe the client is getting told that the song has changed twice in succession for the same song?

about 1 year ago
necimal
necimal

How do you mean notifications? My Last.fm client doesn't pop up at all, tho admittedly I've never tried it on a mac. Can you turn on debug mode (look up further for instructions), then see if my plugin is reporting the track twice? I know that it sends a STOP command, followed by a START command for the next track, but it shouldn't be sending two START commands to the Last.fm client.

11 months ago
veritasnoctis
veritasnoctis

Something's not working for me. Not sure whether it's the Songbird extension of the Last.fm Scrobbler. I'm running Easy Peasy 1.0 (version of Ubuntu 8.10), Last.fm Scrobbler 1.5.1.31879, Songbird 1.0 build 860. Scrobbler says server status OK, last successful connection 6/3/2009. If it's not connecting now, I can't figure out why. No tracks are getting cached. When I play songs in Songbird, there nothing at all happens in the Scrobbler, so I'm not sure if the Songbird extension is working.

11 months ago
veritasnoctis
veritasnoctis

Nevermind. I installed the new 1.1.1 version of Songbird and now the extension and the Last.fm client are working again.

11 months ago
Schaapie
Schaapie

I changed from the other add-on to this one because the other one was disconnecting. I hope that problem won't exist here. But i have one feature reqeust. Is it possible to make an love and ban button inside Songbird?

11 months ago
veritasnoctis
veritasnoctis

An Ubuntu specific version of Songbird 1.1.1 entered the repository and I installed it. Now this extension isn't working again. It's not submitting song information to the Last.fm client. Is this extension not compatible with Ubuntu?

On a different note, I second Schaapie's request for Love and Ban buttons inside Songbird, like the other Last.fm extension.

10 months ago
ricardohead
ricardohead

I have the same problem of amygdala, I get two notifications everytime the song changes, I am using a macbook with leopard 10.5.2, the version of my last.fm client is 1.5.3.45507.

Ideas?

10 months ago
Jimm
Jimm

Can we get a little red Last.fm icon like the other plugin so we can click to enable and disable it? My client sits hidden in the system tray so this would be a handy addition, plus I just like seeing the red icon :) Otherwise it works great.

8 months ago
taqqie
taqqie

Hi! Thanx: this add-on is *exactly* what I was looking for and I've enjoyed it for quite a while now. :-) However, today Songbird 1.2 was released and the add-on appeared to be incompatible with it... Would it be possible to build a new version of it? Thanx a lot!!

7 months ago
Mr.FREAKS
Mr.FREAKS

Yeah, I've been using this add-on for a while now, and was highly disappointed to see that it's incompatible with the new update. I guess it's back to iTunes and non-FLAC, at least for now, since the other Last.fm add-on hardly works right. =/ I'd love to see a new ver. sometime very soon! Thanks in advance. =]

7 months ago
jherm
jherm

Hacked, but as of yet, untested. It claims to work up to Songbird 1.2.0a, so we may be in luck... would love to hear if it does, will report back when I try it...

http://www.freewebs.com/atgn/blog-files/songbird-scrobbler-1.0.3.xpi

7 months ago
jherm
jherm

And when I say hacked... I mean I modified it to install in the latest Songbird, 1.2.0. <3

7 months ago
Mr.FREAKS
Mr.FREAKS

Hey, thanks for that link, man. It seems to be working fine for me! =]

7 months ago
taqqie
taqqie

Working fine here as well! Thanx!! :-)

7 months ago
Taartstaart
Taartstaart

The scrobbler is great, but is there anyone working on Ipod scrobbling? Maybe in a seperate programme? Reallly would be great, but don't know how to do it myself...

5 months ago
Erikw
Erikw

Support for simultaneous scrobbling to Libre.fm would be really great.

4 months ago
ziggypink
ziggypink

why cant i install this app? the install boz is greyed out!

3 months ago
jhat
jhat

Anyone updating this for 1.4.3?

about 1 month ago
sticksandtunes
sticksandtunes

Yes, please, please, please someone update this plugin to work on 1.4.3. This plugin works so much better than the one that doesn't use the scrobbler (although at least that one finally doesn't skip scrobbling the first track on an album, making it somewhat usable for once).

28 days ago
Mr.FREAKS
Mr.FREAKS

Ugh, is there any chance of this add-on being updated!? =/

24 days ago
winter123
winter123

I'd like this since the built in one randomly stopped being able to log in for days now, so all those plays are lost I guess.

3 days ago
Mr.FREAKS
Mr.FREAKS

This isn't funny anymore. I need this add-on! I hate the built-in one; as Winter said, it's so unstable.

about 19 hours ago



Log in to Post a Comment


Download
Statistics
Downloads: 30,893

Average Rating:
4 out of 5  based on 32 ratings

Images: 1

Comments: 129

Last Updated: 11 months ago
Details
Name: Last.fm Scrobbling Support

Author: necimal

Version: 1.0.3 version history

Categories:


Log in to Add a Tag
Share
Embed:

Share: