[23] Reload episodes during reset

pull/2063/head
meisnate12 6 months ago
parent 7da522f2f8
commit aa5fc670c4

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

@ -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:

@ -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

Loading…
Cancel
Save