beets icon indicating copy to clipboard operation
beets copied to clipboard

ListenBrainz plugin

Open sampsyo opened this issue 8 years ago • 11 comments

We should add a plugin to integrate with ListenBrainz. ListenBrainz is a new MetaBrainz project similar to Last.fm: it tracks your listening habits.

An initial version could look very much like the existing lastimport plugin: just download listen counts and such for music in your database. The data would be stored in flexible attributes.

sampsyo avatar Nov 15 '15 02:11 sampsyo

This would be a fantastic addition. Thank you.

bearcatsandor avatar Nov 15 '15 03:11 bearcatsandor

I think this would be well suited as a metasync source rather than a separate new plugin.

pprkut avatar Nov 15 '15 13:11 pprkut

Hmm… good point, @pprkut. The current metasync backends are for local players, but I don't see any immediate reason why a service like ListenBrainz wouldn't fit the same mold.

sampsyo avatar Nov 15 '15 22:11 sampsyo

Oh. This sounds like a nice project. I wonder how it differs from libre.fm. Last.fm feels dead somehow. I maybe will have a look on it and the lastimport plugin.

xsteadfastx avatar Nov 18 '15 09:11 xsteadfastx

Now that the ListenBrainz beta has been launched, anyone want to volunteer to work on a ListenBrainz plugin for Beets? 😉

justinmayer avatar Aug 02 '17 18:08 justinmayer

i really down get the api docs on listenbrainz. where to send what?

xsteadfastx avatar Aug 03 '17 07:08 xsteadfastx

In case someone is interested in developing a plugin, here's the format for the Listenbrainz JSON payload, and here's the API.

the-solipsist avatar Nov 09 '20 23:11 the-solipsist

Did anyone ever made any progress on that? I don't have any Python experience myself but might give that a shot. There's now a Python API library (pylistenbrainz), which should make this fairly straightforward, starting from lastimport or metasync.

Kernald avatar Nov 09 '23 00:11 Kernald

Sounds awesome!

sampsyo avatar Nov 09 '23 01:11 sampsyo

@sampsyo I created a basic Listenbrainz plugin. My primary purpose was to import the weekly playlist recommendations into Plex. I did not use the pylistenbrainz library for now as 1) it does not have the playlist features that I am looking for, and 2) the basic API is very simple to be implemented directly.

Let me know if this looks fine and I will be happy to submit it to the core so that we can build upon this.

arsaboo avatar Dec 17 '23 20:12 arsaboo

Wow; super cool! Yeah, that honestly sounds very useful.

sampsyo avatar Dec 18 '23 22:12 sampsyo