Skip to content

Commit

Permalink
fix: episode duplicate downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaisberg authored and Gaisberg committed Nov 26, 2024
1 parent 1b467ca commit d407535
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/program/services/downloaders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ def validate(self):
def run(self, item: MediaItem):
logger.debug(f"Starting download process for {item.log_string} ({item.id})")

if item.state == States.Downloaded:
logger.debug(f"Skipping {item.log_string} ({item.id}) as it has already been downloaded")
if item.active_stream:
logger.debug(f"Skipping {item.log_string} ({item.id}) as it has already been downloaded by another download session")
yield item
return

download_success = False
for stream in item.streams:
Expand Down

0 comments on commit d407535

Please sign in to comment.