getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: Haakjvork on December 16, 2023, 07:40:27 PM

Title: Synchronize track playcount with last.fm
Post by: Haakjvork on December 16, 2023, 07:40:27 PM
I just made a plugin that queries tracks individually using track.getInfo to get an user's playcount and update the track playcount. The option will appear in the right click menu.

https://getmusicbee.com/addons/plugins/491/sync-with-lastfm-playcount/

https://github.com/Haakjvork/musicbee-sync-lastfm-playcount

It can make several queries per track depending on the options. If the sum of the queries is equal or less than 1, it won't make changes.

Current version: 1.0.9 - 2024-02-07

(https://raw.githubusercontent.com/Haakjvork/musicbee-sync-lastfm-playcount/main/screenshot.png)


You can update the plugin replacing the files in your plugins folder while MusicBee is closed:

C:\Users\<user>\AppData\Roaming\MusicBee\Plugins

The main file is: MB_SyncLastFmPlaycount.dll
Dependencies: Newtonsoft.Json.dll and IF.Lastfm.Core.dll
Title: Re: Synchronize track playcount with last.fm
Post by: Bee-liever on December 21, 2023, 06:20:21 AM
Thanks very much for this.
Fixed several thousand incorrect playcounts from not being able to reverse sync Musicolet.
Was a little slow to do the entire scan of my library, but now that's done, I only have to scan the current playlist from my phone.
 :)  :)  :)
Title: Re: Synchronize track playcount with last.fm
Post by: morgan109 on February 02, 2024, 09:52:04 AM
Wow, thank you so much for this, my most requested feature finally!

Edit: Is it possible to do this for loved tracks too? I have some loved tracks that don't register as such in musicbee, despite being loved in last.fm. I've tried clearing my files, reinstalling the addon and more...nothing works, some tracks refuse to be loved in musicbee. I wonder if it's the same problem as the play count thing (that music bee query just 1 time for a specific information).
Title: Re: Synchronize track playcount with last.fm
Post by: morgan109 on February 02, 2024, 12:31:30 PM
And I guess this has to be done manually each time? Can't make it search automatically like the last.fm plugin?
Title: Re: Synchronize track playcount with last.fm
Post by: maeva on February 03, 2024, 07:56:45 PM
hello!
this is such a cool plug in and it's great to see that it is working for many people.
sadly, i'm getting an error when i try to install it

(https://imgur.com/qbh41tn.png)

does anyone know what this could be? :(

thank you very much for the help in advance
Title: Re: Synchronize track playcount with last.fm
Post by: phred on February 03, 2024, 08:48:05 PM
does anyone know what this could be? :(
Probably either what you downloaded is corrupt or you're not installing the plugin properly.

Try downloading again and installing again. Double-check the installation instructions.
Title: Re: Synchronize track playcount with last.fm
Post by: maeva on February 04, 2024, 11:40:25 AM
Try downloading again and installing again. Double-check the installation instructions.

i did that yesterday and today again and it did not work unfortunately. same issue
Title: Re: Synchronize track playcount with last.fm
Post by: phred on February 04, 2024, 11:55:24 AM
I'm not able to provide any further suggestions. Perhaps someone else might have an idea. Or wait until the plugin's developer checks in.
Title: Re: Synchronize track playcount with last.fm
Post by: morgan109 on February 05, 2024, 05:03:58 PM
All I did was place all files in plugin folder and voilĂ .
Title: Re: Synchronize track playcount with last.fm
Post by: Haakjvork on February 07, 2024, 02:29:37 PM
Thanks for the feedback!

I've been busy these days, but I've updated the plugin for having the option to get the "Loved track" mark from last.fm too

Once installed, with MusicBee closed, you can update the plugin by just replacing MB_SyncLastFmPlaycount.dll  in  C:\Users\<user>\AppData\Roaming\MusicBee\Plugins

The current version I've uploaded it's here. You can find the .dll there too:

https://github.com/Haakjvork/musicbee-sync-lastfm-playcount/releases/tag/v1.0.9


I also wanna make the plugin automatic using recent scrobbles. I'll get into it if i've time these weeks. Cheers!