getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: karaluh on April 18, 2020, 11:56:16 PM

Title: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on April 18, 2020, 11:56:16 PM
It's so fresh that it's still hot, it's not yet well tested even by me and has several restrictions:

1. As I said it's not very well tested, I just created the first version.
2. Breaks when there are issues on ListenBrainz side. If suddenly a dialog box appears with some errors regarding ListenBrainz I would very much like to get the full error message from you.
3. No MBIDs in the scrobble, MusicBee doesn't expose them in the API. I might be able to workaround it using custom tags, but if that fails I would have to read tags for each format supported by MusicBee myself which would be A LOT of work.
4. No offline scrobbling, all scrobbles are lost when there's no internet.
5. No playcount sync.
6. No "now listening".
7. Or any other feature the last.fm scrobbler has.

You can see the code, report bugs, etc. on GitHub. Also, since this is my first C# project a code review would be much appreciated. I'm also not sure if the licence can be GPL, if that's not the case please let me know.
https://github.com/karaluh/ScrobblerBrainz

The compiled plug-in is here:
https://drive.google.com/file/d/12dWSnoFBPjrp9jsBl19CXC6UJN9k6G-r/view?usp=sharing

To be able to use it you obviously need a ListenBrainz account. The plugin requires your user token to be able to submit scrobbles which you can get here https://listenbrainz.org/profile/
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on May 15, 2020, 08:35:40 PM
I just released another alpha (link below) which is much more stable. I'm scrobbling in parallel to last.fm and ListenBrainz and am actually getting higher scrobble count in ListenBrainz. That's probably because I'm scrobbling very short tracks also, which the last.fm plugin doesn't seem to be doing.

Please note that there is still no offline scrobbling so in case of issues with your internet connection or ListenBrainz internal problems your scrobbles will be lost.

And here's the link to the download:
https://github.com/karaluh/ScrobblerBrainz/releases/download/v0.0.2-alpha/mb_ScrobblerBrainz.dll
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on May 25, 2020, 03:59:30 PM
The first - and hopefully last - beta. Offline scrobbling implemented, no listens should be lost from now on.


https://github.com/karaluh/ScrobblerBrainz/releases/download/v0.1.0-beta/mb_ScrobblerBrainz.dll
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on June 19, 2020, 07:21:13 PM
A second beta, fixes skipped tracks being scrobbled.

https://github.com/karaluh/ScrobblerBrainz/releases/download/v0.1.1-beta/mb_ScrobblerBrainz.dll
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on July 20, 2020, 09:51:03 PM
First stable release. No changes compared to v0.1.1.

https://github.com/karaluh/ScrobblerBrainz/releases/download/v1.0.0/mb_ScrobblerBrainz.dll
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: HisMessengerDAB on July 25, 2020, 10:03:34 PM
This is pretty amazing! Way to go man. I appreciate your hard work
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on August 02, 2020, 04:30:07 PM
This is pretty amazing! Way to go man. I appreciate your hard work

Thank you for your kind words, I'm glad you've found the plugin useful.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: HOX on August 13, 2020, 01:16:52 PM
Still on earliest version and no bugs whatsoever lmao. Anyway i will install newest and thank you for hard work. ListenBrainz have nice stats, imo it's going to be better than last.fm
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: nefcairon on August 16, 2020, 03:22:28 PM
Thanks for this :)
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Rotom on June 29, 2021, 04:06:12 PM
v1.0.0 works with WINE too. Thought I should let anyone here using MusicBee via WINE know.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Eggaian on September 10, 2021, 01:10:55 AM
Hi. Love your plugin but I have a couple questions: why are some of my listens for some artists split into two separate ones? one with a musicbrainz entry and one which doesn't? is this related to what you address in your first post as 'MBIDs'?

Thank you for your work.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on September 10, 2021, 10:55:45 PM
Hi. Love your plugin but I have a couple questions: why are some of my listens for some artists split into two separate ones? one with a musicbrainz entry and one which doesn't? is this related to what you address in your first post as 'MBIDs'?

Thank you for your work.

That's interesting, can you share a link to your ListenBrainz profile so I can investigate? And thank you for your appreciation.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on September 10, 2021, 10:59:36 PM
Thank you all for your appreciation, this really keeps me going :) There's a new release, it fixes some UI issues with the settings panel.

https://github.com/karaluh/ScrobblerBrainz/releases/download/v1.1.0/mb_ScrobblerBrainz.dll
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Eggaian on September 10, 2021, 11:46:45 PM
Hi. Love your plugin but I have a couple questions: why are some of my listens for some artists split into two separate ones? one with a musicbrainz entry and one which doesn't? is this related to what you address in your first post as 'MBIDs'?

Thank you for your work.

That's interesting, can you share a link to your ListenBrainz profile so I can investigate? And thank you for your appreciation.

Hello. My username is Diaken but by looking around I realised the artists from which some of my listens are split into two don't have a musicbrainz entry for some of their releases. So, I end up having a separate playcount even though they are plays from the same artist.

The only solution I see is creating those missing entries for the releases. Or what else do you think could be done?

Also, I downloaded the new version of your scrobblerbrainz but it says it's still version 1.0.0.0
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on September 11, 2021, 10:15:38 AM
Hello. My username is Diaken but by looking around I realised the artists from which some of my listens are split into two don't have a musicbrainz entry for some of their releases. So, I end up having a separate playcount even though they are plays from the same artist.

The only solution I see is creating those missing entries for the releases. Or what else do you think could be done?

Also, I downloaded the new version of your scrobblerbrainz but it says it's still version 1.0.0.0

If your profile is at the link below then you have to be more specific because I don't see MusicBrainz-linked scrobbles there.
https://listenbrainz.org/user/diaken/

As for the version number, where exactly does it say its 1.0.0?
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Eggaian on September 11, 2021, 06:33:45 PM

If your profile is at the link below then you have to be more specific because I don't see MusicBrainz-linked scrobbles there.
https://listenbrainz.org/user/diaken/

As for the version number, where exactly does it say its 1.0.0?

Go to charts and you'll see. For example, my charts display 65 listens for Trainwreck at 7th place and it's linked to a musicbrainz entry. Then you see Trainwreck again at 25th place with 13 listens, this time, not linked to a musicbrainz entry.

When I hover over the plugin, it says it's 1.0.0.0 version. Also when I look at the 'details' tab on its properties.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on September 11, 2021, 07:38:16 PM

If your profile is at the link below then you have to be more specific because I don't see MusicBrainz-linked scrobbles there.
https://listenbrainz.org/user/diaken/

As for the version number, where exactly does it say its 1.0.0?

Go to charts and you'll see. For example, my charts display 65 listens for Trainwreck at 7th place and it's linked to a musicbrainz entry. Then you see Trainwreck again at 25th place with 13 listens, this time, not linked to a musicbrainz entry.

When I hover over the plugin, it says it's 1.0.0.0 version. Also when I look at the 'details' tab on its properties.

Ah, in the File Explorer. I'll look into this.

As for the other issue it looks like something in ListenBrainz UI is broken. On the link below in the "Top Recording" section the first two places are occupied by the same song and both of them are MB-linked to the same recording.

https://listenbrainz.org/user/Diaken/reports/?range=week
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Eggaian on September 11, 2021, 11:35:17 PM
Aight, let me know.

Yea, you're right. it's the same song but from different releases and they both link to Turn on the Bright Lights for some reason. But did you take a look at my top artists in the 'all time' range? Then you'll see what I was saying about Trainwreck.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on September 12, 2021, 10:37:49 AM
Aight, let me know.

Yea, you're right. it's the same song but from different releases and they both link to Turn on the Bright Lights for some reason. But did you take a look at my top artists in the 'all time' range? Then you'll see what I was saying about Trainwreck.

Yes, that also looks like LB issue.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Eggaian on September 27, 2021, 03:44:12 AM
Just reported the issue, let's see what they say/do.

Also, did you look into what I told you about the latest version of your plug-in?
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on September 27, 2021, 09:42:12 PM
Just reported the issue, let's see what they say/do.

Also, did you look into what I told you about the latest version of your plug-in?

Not yet, sorry. On the bright side I expect this to be an easy fix that'll be included in the next release. No ETA though.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Shingo on October 19, 2021, 10:25:18 AM
Doesn't seem to be working for me, I put the LB token in the plugin config but it's not scrobbling anything.

Applying/saving and restarting MusicBee doesn't help (also, the token disappears every time I go back to the preferences, I don't know if that's supposed to happen).
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on October 19, 2021, 06:53:14 PM
Doesn't seem to be working for me, I put the LB token in the plugin config but it's not scrobbling anything.

Applying/saving and restarting MusicBee doesn't help (also, the token disappears every time I go back to the preferences, I don't know if that's supposed to happen).
Definitely not. It looks like the token is not saved in the preferences, I'll look into this.
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on October 19, 2021, 11:13:07 PM
Doesn't seem to be working for me, I put the LB token in the plugin config but it's not scrobbling anything.

Applying/saving and restarting MusicBee doesn't help (also, the token disappears every time I go back to the preferences, I don't know if that's supposed to happen).
Definitely not. It looks like the token is not saved in the preferences, I'll look into this.
Should be fixed now in the v1.1.1 https://github.com/karaluh/ScrobblerBrainz/releases/download/v1.1.1/mb_ScrobblerBrainz.dll
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Shingo on October 19, 2021, 11:44:29 PM
Doesn't seem to be working for me, I put the LB token in the plugin config but it's not scrobbling anything.

Applying/saving and restarting MusicBee doesn't help (also, the token disappears every time I go back to the preferences, I don't know if that's supposed to happen).
Definitely not. It looks like the token is not saved in the preferences, I'll look into this.
Should be fixed now in the v1.1.1 https://github.com/karaluh/ScrobblerBrainz/releases/download/v1.1.1/mb_ScrobblerBrainz.dll
It's working now, thanks!
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: Shingo on October 22, 2021, 06:47:17 AM
I was wondering... would it be possible to sync the "loved" tracks between MusicBee and ListenBrainz via the API? Is that something you're planning to implement?
Title: Re: ScrobblerBrainz: a plug-in to scrobble tracks to ListenBrainz
Post by: karaluh on October 25, 2021, 06:25:56 PM
I was wondering... would it be possible to sync the "loved" tracks between MusicBee and ListenBrainz via the API? Is that something you're planning to implement?
Eventually, yes.