# Plex adding TV shows 78 years into the future

**URL:** <https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933>\
**Category:** Metadata & Adding Files\
**Tags:** server-docker\
**Created:** [September 7, 2019, 1:50am UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933 "2019-09-07T01:50:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [September 7, 2019, 1:50am UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/1 "2019-09-07T01:50:41Z")

</div>

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/](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

```auto
<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](https://forums.plex.tv/uploads/short-url/bvIt2MvguEhD2HvVS39YpK1Iy4R.zip) (4.7 MB)

Any help would be great - thanks

---

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [September 9, 2019, 2:46am UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/2 "2019-09-09T02:46:47Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [September 12, 2019, 7:52am UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/3 "2019-09-12T07:52:27Z")

</div>

Surely someone has an idea?

---

<div class="post-metadata">

**Author:** ![NewPlaza](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/newplaza/32/128634_2.png) [@NewPlaza](https://forums.plex.tv/u/NewPlaza)\
**Post date:** [September 12, 2019, 12:55pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/4 "2019-09-12T12:55:03Z")

</div>

> [@Antigravity83](#):
>
> addedAt=“4039315200”

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

---

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [September 12, 2019, 8:41pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/5 "2019-09-12T20:41:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [September 22, 2019, 12:15pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/6 "2019-09-22T12:15:33Z")

</div>

Noone?

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

---

<div class="post-metadata">

**Author:** ![NewPlaza](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/newplaza/32/128634_2.png) [@NewPlaza](https://forums.plex.tv/u/NewPlaza)\
**Post date:** [September 30, 2019, 7:45pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/7 "2019-09-30T19:45:55Z")

</div>

> [@Antigravity83](#):
>
> then a couple of days later, Plex changes it back to 78 years in the future.

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.

---

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [September 30, 2019, 11:13pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/8 "2019-09-30T23:13:51Z")

</div>

> [@NewPlaza](#):
>
> Be sure the Settings\>Library\> `Empty trash automatically after every scan` is disabled(unchecked)

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

Plex will still reference a file that no longer exists?

> [@NewPlaza](#):
>
> 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.

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

![image](https://global.discourse-cdn.com/plex/original/3X/2/8/289334339d52365cf8683c02a9e5c3af0d682290.png)

Ubuntu also has the correct date

![image](https://global.discourse-cdn.com/plex/original/3X/6/0/60f105b5e00e7690ca74fb138320d8dec45dab4d.png)

---

<div class="post-metadata">

**Author:** ![NewPlaza](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/newplaza/32/128634_2.png) [@NewPlaza](https://forums.plex.tv/u/NewPlaza)\
**Post date:** [October 1, 2019, 1:22am UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/9 "2019-10-01T01:22:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Antigravity83](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Antigravity83](https://forums.plex.tv/u/Antigravity83)\
**Post date:** [October 1, 2019, 6:04am UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/10 "2019-10-01T06:04:27Z")

</div>

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.

```auto
<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>

```

---

<div class="post-metadata">

**Author:** ![ragaskar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ragaskar/32/156130_2.png) [@ragaskar](https://forums.plex.tv/u/ragaskar)\
**Post date:** [October 23, 2019, 2:20pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/11 "2019-10-23T14:20:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ragaskar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ragaskar/32/156130_2.png) [@ragaskar](https://forums.plex.tv/u/ragaskar)\
**Post date:** [October 23, 2019, 2:27pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/12 "2019-10-23T14:27:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [October 23, 2019, 3:51pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/13 "2019-10-23T15:51:29Z")

</div>

> [@ragaskar](#):
>
> something more drastic

also called the [Plex Dance](https://forums.plex.tv/t/plex-incorrectly-identifying-tv-episodes/100265/4 "Plex Dance")

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [February 20, 2020, 3:34pm UTC](https://forums.plex.tv/t/plex-adding-tv-shows-78-years-into-the-future/457933/15 "2020-02-20T15:34:20Z")

</div>

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