ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
463 stars 44 forks source link

Metadata XML filename off by 1 day for YouTube videos #135

Closed polklabs closed 1 year ago

polklabs commented 1 year ago

Also posted this to Absolute-Series-Scanner since I'm not sure which program is causing the issue. https://github.com/ZeroQI/YouTube-Agent.bundle/issues/136

Platform

Operating system and version: Docker Plex version: 1.32.4.7195

Expected Behavior

The YouTube-Agent.bundle should match videos based on info provided by ASS

Current Behavior

Metadata does not get updated for video. Plex/Agent/ASS is looking for metadata xml file in wrong location.

[Req#3af5] Unable to load episode file ["/config/Library/Application Support/Plex Media Server/Metadata/TV Shows/9/f61e74cbc3a1cc6523325baf58f292fd3c3d4dd.bundle/Contents/_combined/seasons/2023/episodes/2023-05-03.xml"] [Req#435b] Error parsing XML: Empty or non-existant file..

If I go to that location the actual xml filename is 2023-05-04.xml. It appears to be off by one day for all videos in the library.

I can rename the xml file and thumbnail folder to 2023-05-03 and the then refresh metadata which sometimes applies the correct metadata until those files are overwritten again with the wrong names.

Steps to Reproduce

  1. Install YouTube-Agent.bundle
  2. Install ASS python file
  3. Create a new TV Show library and set Scanner/Agent
  4. Download YouTube video FilmJoy [UCEtB-nx5ngoNJWEzYa-yXBg]/120 - The_Many_Layers_of_Glass_Onion_-_Movies_with_Mikey [bHpVu97MQvY].webm with release date set to '5/3/2023 8:21 PM'
  5. Refresh metadata and check plex logs

Additional information

Not sure if this is an issue with ASS or YouTube-Agent.bundle but it only starts happening when I switch the Scanner agent over, but if I don't switch the Scanner then only playlists get metadata not channel videos. Perhaps it's related to timezone but I have Plex docker TZ and System TZ set the same as far as I can tell.

ZeroQI commented 1 year ago

Duplicate of https://github.com/ZeroQI/YouTube-Agent.bundle/issues/136