lastcast icon indicating copy to clipboard operation
lastcast copied to clipboard

Musicbrainz server support

Open jbmfg opened this issue 2 years ago • 4 comments

Would love to see custom musicbrainz-like servers as an option for scrobbling destination. I run maloja that supports the musicbrainz api

jbmfg avatar Mar 13 '22 15:03 jbmfg

Hey @jbmfg, would be happy to include support, but I don't personally use any of these services, so it would be hard for me to build this confidently myself. Would you be able to work on this?

Looking at maloja, seems like they also support the Last.FM API (at least I think that's what Audioscrobbler 1.2 means), so might be as simple as creating a subclass of pylast's Last.fm client and making the API host and path configurable, sort of how librefm is supported.

Supporting musicbrainz/listenbrainz is also possible, but would be a bigger change since it's a separate incompatible API.

erik avatar Mar 13 '22 15:03 erik

I gave it a shot but the maloja api authentication is too different and I gave up

jbmfg avatar May 22 '22 12:05 jbmfg

Thanks for giving it a shot!

Anything in particular that ended up being a blocker? Perhaps the upstream pylast project would be open to including native support for maloja

erik avatar May 23 '22 13:05 erik

pylast is set up to authenticate with an api_key & secret which is then used to generate a session key that is used to submit scrobbles. Maloja just requires an apikey be sent in the headers to authenticate. I couldnt figure out how to get pylast to just skip over all the session key stuff and still work. Just beyond my skill level im afraid

jbmfg avatar May 25 '22 18:05 jbmfg