getmusicbee.com

Support => Questions => Topic started by: namewithoutwords on January 15, 2020, 12:19:19 AM

Title: play count sync from last.fm is incorrect for a single, specific track
Post by: namewithoutwords on January 15, 2020, 12:19:19 AM
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...
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: frankz on January 15, 2020, 12:49:37 AM
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
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: namewithoutwords on January 15, 2020, 02:56:36 AM
"Hero Member" indeed.  Thank you frankz, that did fix it.
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: frankz on January 15, 2020, 03:33:06 AM
Glad to hear it. Good news.
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: KarHutWhat on May 18, 2021, 09:55:13 PM
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.
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: frankz on May 18, 2021, 10:33:52 PM
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.
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: KarHutWhat on May 19, 2021, 06:25:55 PM
"The file path %AppData%/Local/MusicBee/ couldn't be found."
(https://i.imgur.com/ieNs6DP.png)

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

The file LastFmPlayCountCache.dat is actually in C:\Users\[username]\AppData\Local\MusicBee\InternalCache
Title: Re: play count sync from last.fm is incorrect for a single, specific track
Post by: frankz on May 19, 2021, 07:36:31 PM
Ah, OK. Thanks.  I've updated the path in the reference post.