Date Based Episodes matching to wrong date

Server Version#: 1.32.4.7195
Player Version#: all players
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>

When a series in a TV Show library is set with date based episode naming, metadata xml cannot be found because plex is trying to fetch the wrong XML file. In the following example the episode should be set to ‘6/10/2023’, that’s the episode name that’s set and the XML file in the metadata folder is set to that name, but Plex is trying to use ‘6/9/2023’ and is failing to find the file.

File name (correct episode):
/data/YouTube/FilmJoy [UCEtB-nx5ngoNJWEzYa-yXBg]/2023-06-10 - Batman_Needs_Villains_-_Movies_with_Mikey [e8ub-YWrqrk].webm

On the episode page listing (correct episode):

  • Season: 2023
  • Episode: 6/10/23

Episode → GetInfo → View XML → Guid (wrong episode):
com.plexapp.agents.youtube://youtube|UCEtB-nx5ngoNJWEzYa-yXBg|FilmJoy [UCEtB-nx5ngoNJWEzYa-yXBg]/2023/2023-06-09?lang=xn

In the Alerts window (wrong episode):

  • Finished processing 'Film Joy 2023-06-09'

Console Logs (wrong episode):

Jun 23, 2023 07:41:22.764 [23407211432760] Warning — [Req#16c39] Unable to load episode file ["seasons/2023/episodes/2023-06-09.xml"]
Jun 23, 2023 07:41:22.768 [23407211432760] Error — [Req#16c39] Error parsing XML: Empty or non-existant file..
Jun 23, 2023 07:41:22.774 [23407211432760] Error — [Req#16c39] Error parsing XML: Empty or non-existant file..

Looking in the metadata folder (correct episode):
...\Plex Media Server\Metadata\TV Shows\9\f61e74cbc3a1cc6523325baf58f292fd3c3d4dd.bundle\Contents\_combined\seasons\2023\episodes\2023-06-10.xml

Every single episode for every show in this library is unable to find metadata because Plex is pointing to one day prior when fetching the metadata xml.

Attempted solutions:

  • Did the plex dance
  • Restarted docker container
  • Optimized database
  • Cleaned bundles
  • Checked TimeZone
  • Tried different file naming schemes

No matter what, Plex seems determined to key off of the incorrect date for episode name.

Am I missing something?

Exactly, same here, please check the cause of the problem. I also submitted this post two days ago and no one responded.

I actually found this bug since I started using plex, but I didn’t use date naming for most of my episodes, so I didn’t care before, and now that I need to use it, I find the bug hasn’t been fixed.

Been using Plex for years but only recently started using date based episode naming. Seems like a pretty obvious issue.

My best guess is that it’s related to an internal UTC to Timezone conversion. If plex thinks the date is 06-10-2023 12 am then does some TZ conversion from UTC it gets converted to 06-09-2023 5pm.
But without being able to look into the codebase that’s just a guess

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