epoupon / lms

Lightweight Music Server. Access your self-hosted music using a web interface.
http://lms-demo.poupon.dev
GNU General Public License v3.0
1.02k stars 60 forks source link

feature request: last.fm scrobbling #138

Open icyphox opened 3 years ago

icyphox commented 3 years ago

hi, is support for last.fm scrobbling planned? it’d be really great to have.

epoupon commented 3 years ago

Hi! It is not currently planned, but that could be done I guess. To be honest, I am more interested by the MusicBrainz ecosystem (I am currently focusing on a better ListenBrainz support, like syncing listens)

icyphox commented 3 years ago

@epoupon gotcha! i tried migrating over to listenbrainz after seeing it here — tried their last.fm importer, but it didn’t work, haha. but yeah, i think i’ll get that sorted and start using listenbrainz instead. thanks!

icyphox commented 3 years ago

yeah, listenbrainz seems to be pretty buggy for me. :/ from what i can see, most of the listenbrainz scrobbling code can be reused -- just have to send a similar json to their api; i suppose the auth mechanism is slightly different, though. i'd try and write this myself, but i really don't understand C++ :P

if you ever consider implementing it, i'd love to know!

epoupon commented 3 years ago

As I said I do consider implementing this, but don't expect it to be done in a near future :)

pythoninja commented 8 months ago

Hi @epoupon, 2+ years was passed since your last comment about "not in near future". Still no plans?

epoupon commented 8 months ago

Well we would need some refacto first (that I was willing to do anyway), as listenbrainz handles more things (like synchronizing likes (called "stars" in LMS)). Will be easier after that.

pythoninja commented 8 months ago

Good, thank you for status update. Will wait for this.

nonylours commented 6 months ago

For people who use Last.fm, there is an app called Multi-Scrobbler that can scrobble songs from multiple sources to multiple clients. For example, it’s possible to use ListenBrainz as a source and transfer the scrobbles to Last.fm. It’s also possible to use a Subsonic server as a source, but I couldn’t make it work with LMS.

epoupon commented 6 months ago

Here is the doc for it: it suffers from several limitations due to the poor Subsonic API specs. Note the getNowPlaying endpoint is not implemented in LMS, that's why you can't make it work.

nonylours commented 6 months ago

There was also an authentication error when it tried to login. But I didn't investigate much. Scrobble forwarding from listenbrainz to lastfm works well enough.

OpenSrcerer commented 5 months ago

there is an app called Multi-Scrobbler that can scrobble songs from multiple sources to multiple clients.

+1 for this, I'm running this setup now with LMS and it works flawlessly.

GioF71 commented 1 month ago

There was also an authentication error when it tried to login. But I didn't investigate much. Scrobble forwarding from listenbrainz to lastfm works well enough.

Looking at the configuration options, I see there is only username and password. We probably need to specify authentication mode to legacy mode. This is not required for Navidrome. Might this be the authentication issue with lms?

That of course is on top of the issue already mentioned by @epoupon about the getnowplaying api not being implemented.