commit de4369ce7af0841a6fa0c792493cdf46e1f17d4f
parent 7a82db3426fd372918afc589ed6d45eb97ee434e
Author: archiveanon <>
Date: Sun, 15 Jun 2025 14:45:14 +0000
Prevent torrent creation on missing outputs
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/autotako/job_render.py b/src/autotako/job_render.py
@@ -321,6 +321,9 @@ async def _process_job(jobid):
torrent_file = torrent_output_dir / f"{job.id} ({job.video_id}).torrent"
source_files = list(map(pathlib.Path, job.output_paths))
+ if not all(f.exists() for f in source_files):
+ return
+
save_path = str(source_files[0].parent)
if not torrent_file.exists():