Incorrect number of unwatched episodes

Plex is not displaying the correct number unwatched episodes for some tv shows recorded by the dvr.

For example, I only have one episode of Flash on my server, but plex is showing two unwatched episodes on the main show page:

I’m using plex server v1.13.9.5439 on ubuntu 18.04 and here is the XML for the show:

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="5449069d-efe0-4690-ac3b-7ca99fa73ac9" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1539020086">
<Directory ratingKey="933" key="/library/metadata/933/children" guid="com.plexapp.agents.thetvdb://78650?lang=en" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" studio="CBS" type="show" title="The Flash" titleSort="Flash" contentRating="TV-PG" summary="Central City Police forensic scientist Barry Allen&#39;s crime lab is struck by lightning. Allen&#39;s electrified body is flung into and shatters a cabinet of chemicals, which are both electrified and forced to interact with each other and with his physiology when they come into physical contact with his body. He soon discovers that the accident has changed his body&#39;s metabolism and as a result he has gained the ability to move at superhuman speed. &#xD;&#xA;Barry Allen has become the Flash." index="1" rating="7.2" year="1990" thumb="/library/metadata/933/thumb/1539738467" art="/library/metadata/933/art/1539738467" banner="/library/metadata/933/banner/1539738467" theme="/library/metadata/933/theme/1539738467" duration="3600000" originallyAvailableAt="1990-09-20" leafCount="1" viewedLeafCount="0" childCount="1" addedAt="1539738445" updatedAt="1539738467" autoDeletionItemPolicyUnwatchedLibrary="5" autoDeletionItemPolicyWatchedLibrary="7" leafCount="2" viewedLeafCount="0">
<Genre id="20" filter="genre=20" tag="Action" />
<Genre id="321" filter="genre=321" tag="Adventure" />
<Channel id="12877" filter="channel=12877" tag="503 WDCWDT (CW)" />
<Location path="/mnt/media/tv/The Flash (2014)" />
</Directory>
</MediaContainer>

Same issue popped up for me after the most recent server update. Everything is working fine as far as playback and recording…but every single recording now shows that little yellow 2 in the corner (indicating 2 unwatched episodes), even though there is actually only 1 and when you dive down into the season, you can see that there is only 1.

I guess this must not be a very prevalent problem…but I just wanted to add that I recorded a single episode of the new Murphy Brown tonight…and Plex is telling me that I have 14 unwatched episodes.

This has been referred to the development team. Here is a link to the related thread:
https://forums.plex.tv/t/tv-shows-returning-malformed-xml-metadata/320819

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