mpdscribble icon indicating copy to clipboard operation
mpdscribble copied to clipboard

Add ListenBrainz support

Open Forage opened this issue 4 years ago • 8 comments

It would be great to have the option to scrobble tracks to ListenBrainz in addition to or instead of Last.fm.

Forage avatar May 20 '21 13:05 Forage

@Forage For you information, ListenBrainz has an API that is compatible with Last.fm:

Clients supporting the old version of the AudioScrobbler API (such as VLC and Spotify) can be configured to work with ListenBrainz by making the client point to http://proxy.listenbrainz.org and using your MusicBrainz ID as username and the LB Authorization Token as password.

I am using this to scrobble to Listenbrainz, and it works just fine.

I don’t know whether there are any features of Listenbrainz for which it would be worth to have special support by mpdscribble.

splintersuidman avatar Jun 04 '21 15:06 splintersuidman

I don’t know whether there are any features of Listenbrainz for which it would be worth to have special support by mpdscribble.

MusicBrainz ID submission, which is the most requested feature on every ListenBrainz scrobbler.

It makes scrobbling unambiguous by using a MusicBrainz-mapped UUID for the artist, album, and track. That way the local file can have any metadata on the artist, album and title fields and it will still be mapped correctly to the relevant entry on MusicBrainz.

It's pretty much the one reason people want to migrate to ListenBrainz (other than it being fully FOSS, of course).

animaldaydream avatar Jul 03 '21 07:07 animaldaydream

Hi, ListenBrainz developer here. We were just talking with another mpdscribble user in our chat who was also interested in having MBIDs submitted to ListenBrainz (and as a result of this conversation we found a bug in our compat API). We also accept all metadata added to files (such as by picard or beats), so if that data was available in the MPD database then an LB-specific client could also submit this. We may have some available time to help contribute to this feature, although we're not strong C++ developers, and one immediate requirement that I see is a json library to construct the message. Do you have any preferences for a library that we could include to construct json, or are you open to hand-crafting messages?

alastair avatar Oct 26 '21 15:10 alastair

I like boost::json a lot, but it's not easily available; most Linux distributions don't have it. It could be integrated as git submodule, but that adds a different kind of cruft. MPD uses yajl, but that's cumbersome. If not boost::json, then I guess the nlohman JSON library is the second best choice.

MaxKellermann avatar Oct 26 '21 15:10 MaxKellermann

@alastair Any news on this?

badlandspray avatar Jun 15 '22 14:06 badlandspray

Is it still something planned ?

FLchs avatar Jun 17 '24 11:06 FLchs

For those that want something that works right now, an alternative that I have been using for a while now is : https://codeberg.org/elomatreb/listenbrainz-mpd

rooiratel avatar Jun 18 '24 16:06 rooiratel

mpdscribble is not directly supporting ListenBrainz, though ListenBrainz exposes a Last.FM Compatible API for ListenBrainz, making mpdscribble a possible client for ListenBrainz.

[listenbrainz]
url = http://proxy.listenbrainz.org/
username = user
password = token

mxjeff avatar Jun 20 '24 14:06 mxjeff