Author Topic: play count sync from last.fm is incorrect for a single, specific track  (Read 2558 times)

namewithoutwords

  • Newbie
  • *
  • Posts: 3
So this is a strange one.

last.fm plugin is enabled, I have enabled the  "Synchronize Play Count" option.
By all appearances, this works!  However, one track (and only one track) is way off.

https://www.last.fm/music/The+Promise+Ring/_/Make+Me+A+Chevy

For some reason, the play count for this track (and only this track) is synced to be 57.  
last.fm reports my play count for this track as 6.
Every other track in my library (including all the other tracks on this same album) are correct and update as expected.

(I even pulled my entire play history from last.fm via the api and double-checked manually - 6 scrobbles.)

If I manually edit the play count in Musicbee and set it to 6, and then close/reopen, the value is updated to 57 again (which I guess is at least consistent with the checkbox / indicative that last.fm sync is to blame...)

Just before making this post, I even tried playing this track to see if I could get the count to increment, and it does.
After that most recent play, my "real" last.fm play count is now 7, but musicbee now thinks it is 58.

I recognize that this is a long shot, but anyone have any idea why this might be happening? 51 extra plays seems like a very odd thing indeed...

frankz

  • Sr. Member
  • ****
  • Posts: 3876
Close MB, delete \AppData\Local\MusicBee\InternalCache\LastFmPlayCountCache.dat and then resync.  It doesn't download the entire history each time, only incrementally, so if there are hosed plays in that file for some reason they'll keep getting put back in the playcount.

EDIT: corrected path reference
Last Edit: May 19, 2021, 07:36:13 PM by frankz



KarHutWhat

  • Newbie
  • *
  • Posts: 4
Thanks so much @frankz for pointing me here. This is the exact problem I had, and the solution above did set me on the right path, with a couple tweaks.

The file path %AppData%/Local/MusicBee/ couldn't be found. But %AppData% alone sent me to my AppData/Roaming folder. I found a MusicBee folder there, but I did not find the LastFmPlayCountCache.dat file in it. So I backed up to my AppData/Local folder, and found /MusicBee/LastFmPlayCountCache.dat and deleted the file.

I re-started MusicBee, I un-selected and re-selected the option to sync play counts. i saw in a status note at the bottom of the app that it was working on it. Success! So I decided to play some music while it worked. I discovered that, when it was finished syncing, the tracks that I had just listened to now had overinflated play counts. That must have been what happened the first time. So I closed the app again and repeated the process of deleting and re-syncing.

This time I didn't play any music until the re-sync was finished. It seems to have worked. Lesson learned.

frankz

  • Sr. Member
  • ****
  • Posts: 3876
The file path %AppData%/Local/MusicBee/ couldn't be found. But %AppData% alone sent me to my AppData/Roaming folder. I found a MusicBee folder there, but I did not find the LastFmPlayCountCache.dat file in it. So I backed up to my AppData/Local folder, and found /MusicBee/LastFmPlayCountCache.dat and deleted the file.
I legit have no idea what you're trying to say here, but I'm glad it worked out either way.

KarHutWhat

  • Newbie
  • *
  • Posts: 4
"The file path %AppData%/Local/MusicBee/ couldn't be found."


%AppData% = C:\Users\[username]\AppData\Roaming

The file LastFmPlayCountCache.dat is actually in C:\Users\[username]\AppData\Local\MusicBee\InternalCache

frankz

  • Sr. Member
  • ****
  • Posts: 3876