Author Topic: Synchronize track playcount with last.fm  (Read 860 times)

Haakjvork

  • Newbie
  • *
  • Posts: 4
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




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
Last Edit: February 07, 2024, 02:35:34 PM by Haakjvork

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3830
  • MB Version: 3.6.8830 P
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.
 :)  :)  :)
MusicBee and my library - Making bee-utiful music together

morgan109

  • Jr. Member
  • **
  • Posts: 20
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).
Last Edit: February 02, 2024, 10:01:30 AM by morgan109

morgan109

  • Jr. Member
  • **
  • Posts: 20
And I guess this has to be done manually each time? Can't make it search automatically like the last.fm plugin?

maeva

  • Newbie
  • *
  • Posts: 2
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



does anyone know what this could be? :(

thank you very much for the help in advance

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 9303
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.
Download the latest MusicBee v3.5 or 3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

maeva

  • Newbie
  • *
  • Posts: 2
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

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 9303
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.
Download the latest MusicBee v3.5 or 3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

morgan109

  • Jr. Member
  • **
  • Posts: 20
All I did was place all files in plugin folder and voilĂ .

Haakjvork

  • Newbie
  • *
  • Posts: 4
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!