[23] Reload episodes during reset

This commit is contained in:
meisnate12 2024-05-21 09:06:32 -04:00
parent 7da522f2f8
commit aa5fc670c4
3 changed files with 7 additions and 2 deletions

View file

@ -1 +1 @@
2.0.1-develop22 2.0.1-develop23

View file

@ -778,6 +778,11 @@ class Operations:
logger.error(f"TMDb Error: An Episode of Season {season.seasonNumber} was Not Found") logger.error(f"TMDb Error: An Episode of Season {season.seasonNumber} was Not Found")
for episode in self.library.query(season.episodes): 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: try:
episode_poster, episode_background, _, _ = self.library.find_item_assets(episode, item_asset_directory=item_dir, folder_name=name) episode_poster, episode_background, _, _ = self.library.find_item_assets(episode, item_asset_directory=item_dir, folder_name=name)
except Failed: except Failed:

View file

@ -8,7 +8,7 @@ PlexAPI==4.15.13
psutil==5.9.8 psutil==5.9.8
python-dotenv==1.0.1 python-dotenv==1.0.1
python-dateutil==2.9.0.post0 python-dateutil==2.9.0.post0
requests==2.31.0 requests==2.32.1
retrying==1.3.4 retrying==1.3.4
ruamel.yaml==0.18.6 ruamel.yaml==0.18.6
schedule==1.2.1 schedule==1.2.1