Skip to content

Commit

Permalink
fix: episode attr error when checking Show type (#387)
Browse files Browse the repository at this point in the history
Co-authored-by: Spoked <Spoked@localhost>
  • Loading branch information
dreulavelle and Spoked authored Jun 12, 2024
1 parent d814c03 commit 3e0a575
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/program/symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3e0a575

Please sign in to comment.