[Bug] Recently Played Music list stuck with tracks marked played in the future

Server Version#: 1.18.8.2468
Player Version#: 7.28.0.15501

My Recently Played Music list is constantly stuck with some artists at the top even though I haven’t listened to them in awhile. Looking at my listening history I noticed this:

As far as I can tell there’s no way to fix this in the UI (eg. remove these scrobbles or fix their date).

I think the server should be enhanced so that if a client erroneously reports a played time in the future it instead sets the played time to the current date and time. If you can’t trust the clients to send proper timestamps at least trust the laws of physics and assume I didn’t listen to a track in the future.

Also maybe add some duplicate scrobble checking where it shouldn’t be possible to listen to the same track multiple times in a single minute as that’s also an obvious error.

In the meantime, is there some way to “rebuild” or “verify” the database and fix these data anomalies?

Thanks!

1 Like

Have you checked your server to make sure it has the right time?

Yes it’s fine for everything I’m listening to now. I did have a server crash the other day, but these were already stuck before that happened.

Even the play history doesn’t seem to map to what’s in my Recently Played list though (all pictures taken at 4:04PM):


1 Like

This is a known bug with the Android client (specifically when playing synced music offline). No word from devs on a fix yet. Additionally, a sanity check on the server side is being implemented, to make sure clients can’t send play dates years into the future.

Sometimes playing that track again will remove the erroneous plays. If not, you will have to use a sqlite editor to remove those tables from metadata_item_views, save the sqlite db, then put it back into the server directory (obviously stop the PMS docker first).

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.