fix honour stopped task on retry

This commit is contained in:
Simon 2026-07-27 22:31:36 +07:00
parent ed19ffa020
commit ccd2d092c0
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ def download_pending(self, auto_only=False):
downloader = VideoDownloader(task=self)
downloaded, failed = downloader.run_queue(auto_only=auto_only)
if failed:
if failed and not self.is_stopped():
print(f"[task][{self.name}] Videos failed, retry.")
self.send_progress(["Videos failed, retry."])
raise self.retry()