Mark episode played affects entire season

Server Version#: 4.57.4
Player Version#: 4.57.4 (web interface on localhost)

I’m having a strange issue with certain TV shows in my library. If a season is entirely unplayed, watching any one episode results in the entire season being marked as played. If I select a single episode and manually mark as played or unplayed, it applies the change to the entire season. If I select an episode and view watch history, the entire season seems to share the same watch history, and any episode I select will show only the last time I watched any episode from that season in the history – including episodes that I have never watched.

Otherwise all of the episodes play perfectly fine, and if I check the metadata everything looks correct…but somehow the watch history and play state seems to be shared across entire seasons! Anyone have any idea what could cause this?

Can you provide the xml info from 2 of these episodes after marking only 1 as watched?

Here is the one I marked as played:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="5" librarySectionTitle="TV Shows" librarySectionUUID="418cf922-0e4f-4b27-9097-15ea57b55dca" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1626067009">
<Video ratingKey="19508" key="/library/metadata/19508" parentRatingKey="19386" grandparentRatingKey="19274" guid="com.plexapp.agents.thetvdb://72449/6/6?lang=en" parentGuid="com.plexapp.agents.thetvdb://72449/6?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://72449?lang=en" type="episode" title="Episode 19" titleSort="Abyss" grandparentKey="/library/metadata/19274" parentKey="/library/metadata/19386" librarySectionTitle="TV Shows" librarySectionID="5" librarySectionKey="/library/sections/5" grandparentTitle="Stargate SG-1" parentTitle="Season 6" contentRating="TV-PG" summary="" index="19" parentIndex="6" rating="7.5" viewCount="1" skipCount="1" lastViewedAt="1668800355" year="2002" thumb="/library/metadata/19508/thumb/1666793476" art="/library/metadata/19274/art/1665064772" parentThumb="/library/metadata/19386/thumb/1665064771" grandparentThumb="/library/metadata/19274/thumb/1665064772" grandparentArt="/library/metadata/19274/art/1665064772" grandparentTheme="/library/metadata/19274/theme/1665064772" duration="2533040" addedAt="1665064680" updatedAt="1666793476">
<Media id="34430" duration="2533040" bitrate="1145" width="640" height="352" aspectRatio="1.85" audioChannels="2" audioCodec="mp3" videoCodec="mpeg4" videoResolution="sd" container="avi" videoFrameRate="PAL">
<Part accessible="1" exists="1" id="43178" key="/library/parts/43178/1664892268/file.avi" duration="2533040" file="/media/TV Shows/Stargate SG-1/Season 06/Stargate SG-1 S06E19 - The Changeling.avi" size="366524576" container="avi" deepAnalysisVersion="4" requiredBandwidths="1909,1757,1454,1454,1454,1454,1454,1454">
<Stream id="86287" streamType="1" codec="mpeg4" index="0" bitrate="1018" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codecID="XVID" codedHeight="352" codedWidth="640" frameRate="25.000" height="352" refFrames="1" requiredBandwidths="1782,1629,1329,1329,1329,1329,1329,1329" width="640" displayTitle="SD (MPEG4)" extendedDisplayTitle="SD (MPEG4)"> </Stream>
<Stream id="86288" streamType="2" selected="1" codec="mp3" index="1" channels="2" bitrate="127" audioChannelLayout="stereo" requiredBandwidths="128,128,128,128,128,128,128,128" samplingRate="48000" streamIdentifier="1" displayTitle="Unknown (MP3 Stereo)" extendedDisplayTitle="Unknown (MP3 Stereo)"> </Stream>
</Part>
</Media>
<Writer id="49866" filter="writer=49866" tag="Brad Wright"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

and here is another that I have not watched at all which marked played at the same time:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="5" librarySectionTitle="TV Shows" librarySectionUUID="418cf922-0e4f-4b27-9097-15ea57b55dca" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1626067009">
<Video ratingKey="19509" key="/library/metadata/19509" parentRatingKey="19386" grandparentRatingKey="19274" guid="com.plexapp.agents.thetvdb://72449/6/6?lang=en" parentGuid="com.plexapp.agents.thetvdb://72449/6?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://72449?lang=en" type="episode" title="Episode 20" titleSort="Abyss" grandparentKey="/library/metadata/19274" parentKey="/library/metadata/19386" librarySectionTitle="TV Shows" librarySectionID="5" librarySectionKey="/library/sections/5" grandparentTitle="Stargate SG-1" parentTitle="Season 6" contentRating="TV-PG" summary="" index="20" parentIndex="6" rating="7.5" viewCount="1" skipCount="1" lastViewedAt="1668800355" year="2002" thumb="/library/metadata/19509/thumb/1666793476" art="/library/metadata/19274/art/1665064772" parentThumb="/library/metadata/19386/thumb/1665064771" grandparentThumb="/library/metadata/19274/thumb/1665064772" grandparentArt="/library/metadata/19274/art/1665064772" grandparentTheme="/library/metadata/19274/theme/1665064772" duration="2530520" addedAt="1665064680" updatedAt="1666793476">
<Media id="34431" duration="2530520" bitrate="1151" width="640" height="352" aspectRatio="1.85" audioChannels="2" audioCodec="mp3" videoCodec="mpeg4" videoResolution="sd" container="avi" videoFrameRate="PAL">
<Part accessible="1" exists="1" id="43179" key="/library/parts/43179/1664892341/file.avi" duration="2530520" file="/media/TV Shows/Stargate SG-1/Season 06/Stargate SG-1 S06E20 - Memento.avi" size="368075306" container="avi" deepAnalysisVersion="4" requiredBandwidths="2220,1695,1695,1695,1695,1695,1695,1695">
<Stream id="86289" streamType="1" codec="mpeg4" index="0" bitrate="1023" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codecID="XVID" codedHeight="352" codedWidth="640" frameRate="25.000" height="352" refFrames="1" requiredBandwidths="2099,1574,1574,1574,1574,1574,1574,1574" width="640" displayTitle="SD (MPEG4)" extendedDisplayTitle="SD (MPEG4)"> </Stream>
<Stream id="86290" streamType="2" selected="1" codec="mp3" index="1" channels="2" bitrate="128" audioChannelLayout="stereo" requiredBandwidths="129,129,129,129,129,129,129,129" samplingRate="48000" streamIdentifier="1" displayTitle="Unknown (MP3 Stereo)" extendedDisplayTitle="Unknown (MP3 Stereo)"> </Stream>
</Part>
</Media>
<Writer id="49866" filter="writer=49866" tag="Brad Wright"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

They are both recognized as the same episode. They even have the same episode title.

guid="com.plexapp.agents.thetvdb://72449/6/6?lang=en"
guid="com.plexapp.agents.thetvdb://72449/6/6?lang=en"

There could be a corrupt database in play
or
simply some issue with the old metadata agent.

Is there a reason why you are still using the ancient metadata agent?

Interesting…I did try refreshing the metadata but that hasn’t helped; is there a way to remove and re-scan these files? When I go to delete it says it is going to actually delete the file from the filesystem entirely…can I just delete from the DB and let it re-scan?

Not sure about using the “old metadata agent”…does that mean I should be using “Plex TV Series” instead of “The TVDB” or do I need to find an updated Plex package?

Edit: Looks like I just had to copy the folder outside of the library, run a scan on that library in order to delete that season, then move the folder back and run another scan to re-add it…working fine now…odd…but seems to be fixed. Thanks!

Precisely.
It won’t get any updates or bugfixes.
https://support.plex.tv/articles/migrating-a-tv-library-to-use-the-new-plex-tv-series-agent-scanner/

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