From aa5fc670c46953827e77405c8f35ff4949fe8d94 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 21 May 2024 09:06:32 -0400 Subject: [PATCH] [23] Reload episodes during reset --- VERSION | 2 +- modules/operations.py | 5 +++++ requirements.txt | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6ddb7cf7..6bc9f0fc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1-develop22 +2.0.1-develop23 diff --git a/modules/operations.py b/modules/operations.py index 0dd494a6..7a7e3438 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -778,6 +778,11 @@ class Operations: logger.error(f"TMDb Error: An Episode of Season {season.seasonNumber} was Not Found") for episode in self.library.query(season.episodes): + try: + episode = self.library.reload(episode) + except Failed: + logger.error(f"S{season.seasonNumber}E{episode.episodeNumber} {episode.title} Failed to Reload from Plex") + continue try: episode_poster, episode_background, _, _ = self.library.find_item_assets(episode, item_asset_directory=item_dir, folder_name=name) except Failed: diff --git a/requirements.txt b/requirements.txt index 020ee562..b79b485b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ PlexAPI==4.15.13 psutil==5.9.8 python-dotenv==1.0.1 python-dateutil==2.9.0.post0 -requests==2.31.0 +requests==2.32.1 retrying==1.3.4 ruamel.yaml==0.18.6 schedule==1.2.1