Scrobble your playback history to Last.fm via the official client.
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:
Can anyone give me a command-line path that will launch the Last.fm client?
...er on Mac I meant to add! The client is already launched automagically on Windows & Linux.
This works perfectly!
thanks!
0.7pre support please. :))
woot!
“You need to already have the official Last.fm client installed.”
Ah… too bad :p
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 ^^
This works perfectly! Thank you!
weird bug…Songbird doesn’t scrobble when in mini player mode. Other than that, works great so far.
thanks, I will follow that up!
sweet fixed it :)
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
Hi there :) Thanks for posting. There is no configuration necessary. Here are a couple of things to try:
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 :)
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.
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?
Oops, I’m sorry I was just complaining, the extension is awesome, congrats
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
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.
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
Any chance there could be integrated iPod scrobbling? =D
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 =)
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.
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
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.
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.
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.
Strange, I can’t explain it! Are there any messages related to ‘songbird-scrobbler’ in the error console (Tools -> Error Console)?
Also could you try with a fresh profile and no other addons? I’d like to figure out what’s going on here…
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
Just tried a new profile and that did not fix anything. Thanks for trying to help though. :)
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?
@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 :)
necimal, I just tried this on Vista on it works, it must be a problem on Ubuntu or something…
Yeah, I can reproduce it on Ubuntu too. I think it might be a bug in songbird but i’ll look into it :)
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.
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 :)
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!
Command for opening Last.fm app for Mac: open -a Last.fm.app
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?
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!
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 :))
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.
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
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.
oh, I didn’t notice your last post typing previous message, so I’ll try.
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
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)?
nothing at all in the log :(((. just handshakes with audioscrobler, and iTunes stuff. ask me if it will be needed something.
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…
@necimal, no luck on the auto-launch. sorry
Yaay – works really well for me on Ubuntu, thanks!
@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 :)
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
I tried on Mac setting /Applications/Last.fm.app/Contents/MacOS/Last.fm and that seems to work.
@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
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
@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…
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
Yeah, the plugin needs Unicode support, which it doesn’t currently seem to have.
I agree, it really needs Unicode support.
Oh yeah. With unicode support this would be just about perfect!
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 :-(
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
International characters don’t look fine… Try with any Sigur Rós song and the thing looks weird and doesn’t scrobble at all.
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.
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!
@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
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:
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 :)
Necimal I ask you what are the advantages compared to this extension :
http://addons.songbirdnest.com/addon/106 ???
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…
Hey, thanks so much for the unicode support – works a treat! Cheers!
@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!
@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 :)
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.
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!
FIXED! That was the problem. Keep up the great work necimal!
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
@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?
@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.
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.
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
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 :)
welcome.
I'm goin' to change :D
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!
@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.)
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 :)
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.
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.
@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!
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
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!
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.
Strange, could you post a log? Thx
any chance of ipod scrobbling support? I saw a comment posted months ago but no real follow up
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 ;)
I would really love Ipod scrobbling support
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?