last.fm integration

Bug #609246 reported by Iann Gorrill
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pithos
Fix Released
Wishlist
Kevin Mehall

Bug Description

This should be a wishlist item. I would really like to see last.fm integration so that you can scrobble all of your tracks. I believe I used http://code.google.com/p/python-lastfm/ in a different project to accomplish this.

Revision history for this message
Vince Spicer (hacked) wrote :

I can take a look at what would be required for this integration

Changed in pithos:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Arutha (devplace) wrote :

A quick solution would be to let Pithos generate a so-called scrobbler.log. This special formatted text-log of played songs can be used by scrobblers like 'qtscrobbler' to send scrobbles to last.fm. It's not an automatic system but as a temporary solution I guess a lot of people will be happy with it. (I guess it's also not that hard to implement...but I'm not familiar with the code ;-))

Revision history for this message
EvilGnome (evilgnome) wrote :

python-lastfm looks neat. I have a project which is roughly to Shell.FM what Pithos is to pianobar. I chose to use pyLast because it's in the Arch User Repository, while python-lastfm is not. I haven't tried out its scrobbling functionality, and I haven't looked at your code, but I typed this up and it can probably be merged in without much trouble.

Please take a look.

Thanks for Pithos!

Changed in pithos:
assignee: nobody → Kevin Mehall (kevin-mehall)
status: Confirmed → In Progress
Changed in pithos:
status: In Progress → Fix Committed
Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

Thanks, EvilGnome!

Scrobbling support is committed to bzr trunk. Is anyone willing to test this before I spin packages for the PPA? It seems to work, but I'm not really a last.fm user (just signed up to test this).

Testing .deb package (sorry, i386 only) at http://kevinmehall.net/tmp/pithos_0.2~bzr93~localbuild-testing_i386.deb

Revision history for this message
EvilGnome (evilgnome) wrote :

I just checked out from bzr and scrobbling works for me, awesome! It's pretty cool using the session authentication instead of giving a username and password.

I'm not sure, but I don't think it will "love" a track if the user does that after the track ends. If that's the case, it doesn't bother me.

Make sure you get a real client id/version from last.fm before a release.

You can upload your icon in the lastfm api section so users see it when getting asked to confirm permission.
I use Paul Davey's (http://mattahan.deviantart.com/) "Porcelina the Pot" for Pithos on my system (http://yfrog.com/mxxivp).

Thanks for such quick work!

Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

Thanks!
It won't tell last.fm if you love a track after it has already been scrobbled. I agree that's not a big deal, but if there's an API for that, it might be good for the sake of completeness.

I requested a client ID and will push this to the PPA when they give me one.

Changed in pithos:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.