Music star ratings have disappeared

Server Version#: 1.14.1.5488
Player Version#:

Over the past few months I have been rating each track of music I’ve listened to in plex. I created an auto-playlist of unrated music which started out with about 7000 tracks. A couple of weeks ago, I had that worked down to about half. This allowed me to create an auto playlist of 5-star music. A few days ago I noticed that my 5-star playlist was completely empty - Plex has “lost” all of my star ratings. aww…crap.

Has this happened to anyone else?

Is there a way to recover the star ratings?

seriously, anyone?

I’ve got a similar issue - the ratings column is empty despite the fact that the tracks themselves still show the correct star ratings when being played.

If you play one of your previously rated tracks does it show the correct rating when it is playing?

unfortunately, no. My ratings seem to be completely gone.

@atmedia Does plex recognize your star ratings if you go to a music library, select tracks at the top and then select Rating->5 star (or any of the options there)?

Are your media files stored on external or networked drives?
If so, do you have this preference still activated? (You should not)
Settings - Server - Library - ‘Empty trash automatically after every scan’

Hi, thanks. My drives are local to my machine…not the system drive, but not NAS drives nor external.

Could you post the contents of the Plex XML info´of one affected song?

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1"
                allowSync="1"
                identifier="com.plexapp.plugins.library"
                librarySectionID="1"
                librarySectionTitle="Music"
                librarySectionUUID="fa63fac9-e78e-4153-82d4-2244a6110590"
                mediaTagPrefix="/system/bundle/media/flags/"
                mediaTagVersion="1544804462">
    <Track ratingKey="23685"
           key="/library/metadata/23685"
           parentRatingKey="23676"
           grandparentRatingKey="23662"
           guid="local://23685"
           librarySectionTitle="Music"
           librarySectionID="1"
           librarySectionKey="/library/sections/1"
           type="track"
           title="Only a Memory"
           grandparentKey="/library/metadata/23662"
           parentKey="/library/metadata/23676"
           grandparentTitle="Icon For Hire"
           parentTitle="Scripted"
           originalTitle="Icon For Hire"
           summary=""
           index="10"
           parentIndex="1"
           ratingCount="131357"
           thumb="/library/metadata/23676/thumb/1544983798"
           art="/library/metadata/23662/art/1547106524"
           parentThumb="/library/metadata/23676/thumb/1544983798"
           grandparentThumb="/library/metadata/23662/thumb/1547106524"
           grandparentArt="/library/metadata/23662/art/1547106524"
           duration="231053"
           addedAt="1544972807"
           updatedAt="1544990172">
        <Media id="22625"
               duration="231053"
               bitrate="282"
               audioChannels="2"
               audioCodec="mp3"
               container="mp3">
            <Part accessible="1"
                  exists="1"
                  id="23057"
                  key="/library/parts/23057/1487257707/file.mp3"
                  duration="231053"
                  file="E:\OneDrive\Music\Icon For Hire\Scripted\01-10- Only a Memory.mp3"
                  size="8157477"
                  container="mp3"
                  hasThumbnail="1">
                <Stream id="29817"
                        streamType="2"
                        selected="1"
                        codec="mp3"
                        index="0"
                        channels="2"
                        bitrate="274"
                        albumGain="-11.29"
                        albumPeak="1.000000"
                        albumRange="5.396510"
                        audioChannelLayout="stereo"
                        gain="-10.69"
                        loudness="-7.31"
                        lra="6.48"
                        peak="1.000000"
                        samplingRate="44100"
                        displayTitle="Unknown (MP3 Stereo)" />
            </Part>
        </Media>
        <Extras size="0">
        </Extras>
    </Track>
</MediaContainer>

Thank you for this perfectly formatted XML. I like it!

This is a date stamp in epoch format and it translates to
Sunday, 16. December 2018 15:06:47

Was this the day when you added this track for the first time into Plex?
Or was this the day when this track lost its star rating?

I believe it’s the date it lost the track rating…

Then I still think it may have to do with this setting
Settings - Server - Library - ‘Empty trash automatically after every scan’

The track was added on this day into Plex. Which means if it was already in Plex before that day, it must have gotten removed inbetween for some reason.
And that happens for instance if the hard drive doesn’t react (fast enough) when Plex server is scanning its libraries. Are you using pretty aggressive power saving settings?

Or for example if hard drives are getting a different drive letter. (Normally, this shouldn’t happen with internal drives, but who knows.)

ok, then it’s possible this happened when I was replacing the drive. It had some corruption (in non-plex areas) and I had to replace it. I wasn’t able to clone it because of the bad sectors, however, I did make sure to keep all of the original paths and I did not have to rebuild the music library. There could have been a time when the drive letters were changing that this setting caused an issue.

What does this setting do, specifically?

For some reason the copied file was added “as new” into Plex. So all the manual metadata edits you made to it were lost.

It is very important to disable the automatic library update and the above mentioned checkbox before you do anything else, if you are planning on moving media to another drive etc.

yeah, as it turns out it is important :slight_smile:

I suppose I was hoping this data was stored at the file level and not just in metadata.

Is there a way to reconnect the star ratings data with the current state of the library? What database is used to store this data?

No, you can’t do that, unfortunately. All of this is stored in the main Plex database file.

If you’d restore an older version of that file, all the other changes since then would get reverted as well.
https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/

thanks for the link and all of the help!

1 Like

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