Duplicate Items in Library, but exact same file

Server Version#: 1.18.3.2129

Plex seems to think that I’m having duplicated TV episodes, but (!), I know I don’t. Looking at the files paths & XML for the episode, they’re exactly the same. See the screenshots below:

Here’s the XML for that item:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="TV Shows" librarySectionUUID="91f81ffe-dfc1-4eb9-94ba-3d9b2e6d6a4f" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1575561331">
<Video ratingKey="23214" key="/library/metadata/23214" parentRatingKey="21503" grandparentRatingKey="11889" guid="com.plexapp.agents.thetvdb://266189/7/9?lang=en" parentGuid="com.plexapp.agents.thetvdb://266189/7?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://266189?lang=en" type="episode" title="Orion Relocation Services" grandparentKey="/library/metadata/11889" parentKey="/library/metadata/21503" librarySectionTitle="TV Shows" librarySectionID="1" librarySectionKey="/library/sections/1" grandparentTitle="The Blacklist" parentTitle="Season 7" contentRating="TV-14" summary="Red and Liz investigate Orion Relocation Services, an organization that surreptitiously facilitates the disappearance and relocation of criminals. Katarina delves into the memories of an old friend in order to get additional information about the Townsend Directive." index="9" parentIndex="7" year="2019" thumb="/library/metadata/23214/thumb/1575722104" art="/library/metadata/11889/art/1575722104" parentThumb="/library/metadata/21503/thumb/1575722104" grandparentThumb="/library/metadata/11889/thumb/1575722104" grandparentArt="/library/metadata/11889/art/1575722104" grandparentTheme="/library/metadata/11889/theme/1575722104" duration="2587190" originallyAvailableAt="2019-12-06" addedAt="1575722069" updatedAt="1575722104">
<Media id="30648" duration="2587190" bitrate="4176" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="aac" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="lc" videoProfile="main">
<Part accessible="1" exists="1" id="47034" key="/library/parts/47034/1575737352/file.mkv" duration="2587190" file="/data/TV Shows/The Blacklist/Season 7/The Blacklist - S07E09 - Orion Relocation Services WEBDL-1080p.mkv" size="1350464429" audioProfile="lc" container="mkv" videoProfile="main">
<Stream id="110497" streamType="1" default="1" codec="h264" index="0" bitrate="4176" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" closedCaptions="1" codedHeight="1088" codedWidth="1920" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="main" refFrames="1" scanType="progressive" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="110499" streamType="2" selected="1" default="1" codec="aac" index="1" channels="2" audioChannelLayout="stereo" profile="lc" samplingRate="44100" displayTitle="Unknown (AAC Stereo)"/>
<Stream id="110498" streamType="3" codec="eia_608" index="0" embeddedInVideo="1" displayTitle="Unknown (EIA_608)"/>
</Part>
</Media>
<Media id="30649" duration="2587190" bitrate="4176" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="aac" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="lc" videoProfile="main">
<Part accessible="1" exists="1" id="47035" key="/library/parts/47035/1575737352/file.mkv" duration="2587190" file="/data/TV Shows/The Blacklist/Season 7/The Blacklist - S07E09 - Orion Relocation Services WEBDL-1080p.mkv" size="1350464429" audioProfile="lc" container="mkv" videoProfile="main">
<Stream id="110500" streamType="1" default="1" codec="h264" index="0" bitrate="4176" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" closedCaptions="1" codedHeight="1088" codedWidth="1920" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="main" refFrames="1" scanType="progressive" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="110502" streamType="2" selected="1" default="1" codec="aac" index="1" channels="2" audioChannelLayout="stereo" profile="lc" samplingRate="44100" displayTitle="Unknown (AAC Stereo)"/>
<Stream id="110501" streamType="3" codec="eia_608" index="0" embeddedInVideo="1" displayTitle="Unknown (EIA_608)"/>
</Part>
</Media>
<Writer id="21625" filter="writer=21625" tag="Sean Hennen"/>
<Writer id="21616" filter="writer=21616" tag="Taylor Martin"/>
<Extras size="0"> </Extras>
</Video>
</MediaContainer>

Any ideas?

Corrupt database maybe?

You might try Plex Dancing the episodes or seasons first.

The Dance is faster than repairing a corrupt database. If it doesn’t work then you can still perform the database repair procedure.

Ran the repair, but still having duplicate episodes. Going to try the plex dance soon.

So the Plex Dance did remove the ‘duplicate’ items, but I hope it won’t be back. I’ll be sure to update here if it does.

1 Like

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