From 3e0a5758910adc4b02d90bb2839f77ec3e6f6d3f Mon Sep 17 00:00:00 2001 From: Spoked <5782630+dreulavelle@users.noreply.github.com> Date: Tue, 11 Jun 2024 20:51:30 -0400 Subject: [PATCH] fix: episode attr error when checking Show type (#387) Co-authored-by: Spoked --- backend/program/symlink.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/program/symlink.py b/backend/program/symlink.py index 31f24e54..0314b71c 100644 --- a/backend/program/symlink.py +++ b/backend/program/symlink.py @@ -144,9 +144,10 @@ def should_submit(item: Union[Movie, Show, Season, Episode]) -> bool: all_episodes_ready = False break # Give up on the whole season if one episode is not found in 90 seconds if not all_episodes_ready: - for episode in item.episodes: - blacklist_item(episode) - logger.warning(f"Cannot submit season {item.log_string} for symlink: One or more episodes need to be rescraped.") + for season in item.seasons: + for episode in season.episodes: + blacklist_item(episode) + logger.warning(f"Cannot submit show {item.log_string} for symlink: One or more episodes need to be rescraped.") return all_episodes_ready if isinstance(item, Season):