Plex adding TV shows 78 years into the future

Server Version#: 1.16.5.1554

Plex keeps finding existing TV Shows, updating their added date to 78 years into the future - meaning they always appear in the “Recently Added” section.

I’ve done the following to fix the issue:

  1. Optimized Database
  2. Repaired Database (https://support.plex.tv/articles/201100678-repair-a-corrupt-database/)
  3. Ran a script to manually update the added dates

Step 3 works temporarily - however Plex will re-update the added dates on a particular set of TV Shows and they go back to being 78 years in the future.

The time/date on the server is fine. This is evident by the fact new content is added correctly. It seems to be updating the added date only on existing content

For example - this episode of the Looming Tower keeps getting changed to 78 years in the future- here is the XML data

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="6" librarySectionTitle="TV Shows" librarySectionUUID="6e50e244-1e9c-4a3b-ad37-9aeade8c5a4e" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1566369959">

<script/>

<Video ratingKey="78765" key="/library/metadata/78765" skipParent="1" parentRatingKey="78756" grandparentRatingKey="78755" guid="com.plexapp.agents.thetvdb://331821/1/9?lang=en" parentGuid="com.plexapp.agents.thetvdb://331821/1?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://331821?lang=en" librarySectionTitle="TV Shows" librarySectionID="6"librarySectionKey="/library/sections/6" type="episode" title="Tuesday" grandparentKey="/library/metadata/78755" parentKey="/library/metadata/78756" grandparentTitle="The Looming Tower" parentTitle="Season 1" contentRating="TV-MA" summary="The CIA becomes aware that Hazmi and Mihdhar are gone and must relay that to the FBI. O’Neill accepts a job as head of security at the World Trade Center. Soufan is sent back to Yemen. Hazmi, Mihdhar and Atta head to Vegas for a final indulgence." index="9" parentIndex="1" rating="7.0" year="2018" thumb="/library/metadata/78765/thumb/1567792046" art="/library/metadata/78755/art/1566039215" parentThumb="/library/metadata/78756/thumb/1566039215"grandparentThumb="/library/metadata/78755/thumb/1566039215" grandparentArt="/library/metadata/78755/art/1566039215" duration="2898774" originallyAvailableAt="2018-04-11" addedAt="4039315200" updatedAt="1567792046" chapterSource="media">

<Media id="83046" duration="2898774" bitrate="12941" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="dca" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="dts" videoProfile="high">

<Part accessible="1" exists="1" id="83046" key="/library/parts/83046/4039315200/file.mkv" duration="2898774" file="/mnt/unionfs/TV/The Looming Tower/Season 1/The Looming Tower - S01E09 - Tuesday.mkv" size="4689002037" audioProfile="dts" container="mkv" videoProfile="high">

<Stream id="203259" streamType="1" default="1" codec="h264" index="0" bitrate="11405" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" frameRate="23.976" hasScalingMatrix="0" height="1080" level="41" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)"/>

<Stream id="203260" streamType="2" selected="1" default="1" codec="dca" index="1" channels="6" bitrate="1536" language="English" languageCode="eng" audioChannelLayout="5.1(side)" bitDepth="24" profile="dts" samplingRate="48000" displayTitle="English (DTS 5.1)"/>

<Stream id="83276" key="/library/streams/83276" streamType="3" codec="srt" language="English" languageCode="eng" displayTitle="English (SRT External)"/>

</Part>

</Media>

<Director id="134803" filter="director=134803" tag="Craig Zisk"/>

<Writer id="146896" filter="writer=146896" tag="Adam Rapp"/>

<Extras size="0"> </Extras>

</Video>

</MediaContainer>

Latest Logs: Plex Media Server Logs_2019-09-07_11-51-55.zip (4.7 MB)

Any help would be great - thanks

Anyone?

Surely someone has an idea?

It has to do with the addedAt stamp.
Yours reads addedAt="4039315200". That’s number is way to high.
Should be something very close to 1567792046

Yup. That’s the problem. Plex keeps doing that to a select group of existing content.

I’ll fix it with a script, and then a couple of days later, Plex changes it back to 78 years in the future.

Noone?

Have to say, support is fairly hit and miss here.

Be sure the Settings>Library>Empty trash automatically after every scan is disabled(unchecked)
I don’t know much about docker but in any event, Plex sees the year as 2097 and plex does not create time. It’s retrieving the time from your system or the files timestamp.

1 Like

What if a file is updated/removed on the file system?

Plex will still reference a file that no longer exists?

As for the Plex container- it has the correct date:

image

Ubuntu also has the correct date

image

Do me a favor. Please add another new movie/tv and note the time(day, month, year, hour, minute) when you see plex detecting the new content.
Then post the XML and your noted time you added said new movie/tv.

Here is a TV Show that was added 1 October, around 12:45pm GMT 10+

Epoch timestamp looks about right.

As I said - it’s not an issue with new content - Plex keeps updating random old content with future added dates.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="6" librarySectionTitle="TV Shows" librarySectionUUID="6e50e244-1e9c-4a3b-ad37-9aeade8c5a4e" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1568420676">
<Video ratingKey="96635" key="/library/metadata/96635" skipParent="1" parentRatingKey="96071" grandparentRatingKey="96070" guid="com.plexapp.agents.thetvdb://363841/1/2?lang=en" parentGuid="com.plexapp.agents.thetvdb://363841/1?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://363841?lang=en" librarySectionTitle="TV Shows" librarySectionID="6" librarySectionKey="/library/sections/6" type="episode" title="A Long Day's Journey Into ICE" titleSort="Long Day's Journey Into ICE" grandparentKey="/library/metadata/96070" parentKey="/library/metadata/96071" grandparentTitle="All Rise" parentTitle="Season 1" summary="When an ICE agent pursues a defendant in Lola’s courtroom, she must fend him off while determining the appropriate sentence for the offender, an undocumented immigrant, whose crime was warning people of a grocery store selling spoiled goods." index="2" parentIndex="1" year="2019" thumb="/library/metadata/96635/thumb/1569908756" art="/library/metadata/96070/art/1569898261" parentThumb="/library/metadata/96071/thumb/1569898261" grandparentThumb="/library/metadata/96070/thumb/1569898261" grandparentArt="/library/metadata/96070/art/1569898261" duration="2620384" originallyAvailableAt="2019-09-30" addedAt="1569898133" updatedAt="1569908756">
<Media id="99931" duration="2620384" bitrate="10956" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="100119" key="/library/parts/100119/1569877338/file.mkv" duration="2620384" file="/mnt/unionfs/TV/All Rise/Season 1/All Rise - S01E02 - A Long Day's Journey Into ICE - (WEBDL-1080p ).mkv" size="3588678265" container="mkv" videoProfile="high">
<Stream id="366549" streamType="1" default="1" codec="h264" index="0" bitrate="10956" language="English" languageCode="eng" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="24.000" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="366550" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" language="English" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" displayTitle="English (EAC3 5.1)"/>
<Stream id="366551" streamType="3" codec="srt" index="2" language="English" languageCode="eng" title="English" displayTitle="English (SRT)"/>
</Part>
</Media>
<Director id="174438" filter="director=174438" tag="Michael M. Robin"/>
<Writer id="147718" filter="writer=147718" tag="Gregory Nelson"/>
<Extras size="0"> </Extras>
</Video>
</MediaContainer>

I’m having this exact same problem using the docker version of plex.

I restarted my plex to pull the update, remove/re-added my media, still an issue with the same content.

ah, and the one thing I had been meaning to check seems to be the issue.

my media files have a busted timestamp on them (i.e. if I look at the file on disk, it has a date of Jan 1, 2098). Have you checked the timestamp on your media files?

I ran a touch * in the dir with the files to fix the date, and “Refresh Metadata” didn’t pick up the new date, but later I’ll try something more drastic to see if I can dislodge what’s in the DB.

My media is on an external drive and was recently moved from one machine to another, not sure if you happened to be in a similar sitch. Anyways, work a look?

also called the Plex Dance

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