When upgrading quality, matching generates a duplicate item

Server Version#: 1.20.2.3343-c91f25744
Player Version#: 1.19.0.1399-31d8c803

I suspect this is related to movies that were matched using the old agent and then re-matched using the new one.

For example, if I have a DVD version of Above Suspicion, it will have a name like “Above Suspicion (2019) - DVD.mkv.”

Now, let’s assume I upgrade to the Bluray version, I delete “Above Suspicion (2019) - DVD.mkv.” and add “Above Suspicion (2019) - Bluray.mkv.”.

When Plex matches the new file it generates a duplicate item.

Duplicate Movies.PNG

My belief is that it maintains watch status (but I can’t say this with absolute certainty) but it adds the item to Recently Added.

I think this may be related to the old (now deleted) version being matched by the old agent and the new version being matched by the new one. Is this a bug, is it intended? If intended, Is there a way to make it NOT show up in Recently Added.?

Weird. I literally just re-encoded that movie today myself.

Did you Upgrade Matching on your Library, or did you manually change the scanner and agent to the new version?

If you view the XML on each of them, look at the first guid in the first Video section. Same or different?

I think if they have different guid then it isn’t sharing watch status.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="Movies" librarySectionUUID="58dc7d7a-4ebe-4833-8877-ad5e9206ec97" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1600766530">
<Video ratingKey="99269" key="/library/metadata/99269" guid="plex://movie/5d776c80fb0d55001f589651" studio="Bold Films" type="movie" title="Above Suspicion" librarySectionTitle="Movies" librarySectionID="2" librarySectionKey="/library/sections/2" contentRating="R" summary="The chilling true story of a newly married FBI poster boy assigned to an Appalachian mountain town in Kentucky. There he is drawn into an illicit affair with an impoverished local woman who becomes his star informant. She sees in him her means of escape; instead, it's a ticket to disaster for both of them." audienceRating="5.4" year="2019" tagline="The devil always comes as everything you wanted" thumb="/library/metadata/99269/thumb/1601160948" art="/library/metadata/99269/art/1601160948" duration="6275861" originallyAvailableAt="2019-07-04" addedAt="1594327618" updatedAt="1601160948" audienceRatingImage="imdb://image.rating" primaryExtraKey="/library/metadata/128621">
... snipped ...
1 Like

After doing this, you need to “Refresh Metadata”, before it will actually be updated to the new agent.
If you replace the file before that, the new file will be a different movie to Plex than the old file, because they will have different guids.

2 Likes

Thanks for the info. Memory is fuzzy, but I remember following a support article when I upgraded the library so I likely used the Upgrade Matching, in fact, I am 95% sure I did. I feel like where things went wrong was the Refresh Metadata step. I remember doing this, but I think something must have happened that interrupted the process because I was noticing yesterday that there are clearly many movies in my library that need a refresh. So I did kick off a whole library metadata refresh yesterday. If I see a recurrence of the issue, I will use what you have taught me to ccompare the guids.

Thanks again for the help.

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