Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - karaluh

Pages: 1
I created a label and a check box but they are using default Windows appearance and not MusicBee skin. How can I change it? Below is the screenshot and code.

                Label playCountSyncLabel = new Label();
                playCountSyncLabel.Location = new Point(0, 25);
                playCountSyncLabel.AutoSize = true;
                playCountSyncLabel.Text = "synchronise from ListenBrainz to your library on startup:";
                // Check box.
                playCountSyncCheckBox = new CheckBox();
                playCountSyncCheckBox.Location = new Point(0, 43);
                playCountSyncCheckBox.AutoSize = true;
                playCountSyncCheckBox.Text = "synchronise Play Count";

The below code is executed each time a track is skipped, even in the cases where the track playcount is not increased.

case NotificationType.PlayCountersChanged:

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 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.

The compiled plug-in is here:

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

Developers' Area / The best way to display errors to the user
« on: April 18, 2020, 12:48:32 PM »
I'm currently using MessageBox.Show(), is there a better way? If not, can the dialog be at least displayed with MB skin?

MusicBee API / Newbie question: how to save plugin settings?
« on: April 05, 2020, 09:26:57 PM »
I have no prior knowledge of neither C# nor Visual Studio but managed to finish the plugin tutorial. I did that because I want to write a ListenBrainz scrobbler. The first thing I need is a text box for user ID and a working save button in the configure dialog. I've set about.ConfigurationPanelHeight to a non-zero value and the textBox is displayed, but how do I save the settings? I suspect I have to call the SaveSettings() method but where in the code should I do it?

Pages: 1