autotako

Service to monitor moombox for completed livestream downloads to upload for distribution
git clone https://code.alwayswait.ing/autotako
Log | Files | Refs | README

commit ea61bfa1ea26b4ce0453ae515b8eb4cf27ef6ba1
parent f60b975bec55819071d617d9ea68c757ec4d76ac
Author: archiveanon <>
Date:   Sun, 15 Jun 2025 14:45:14 +0000

Prevent torrent creation on missing outputs

Diffstat:
Msrc/autotako/job_render.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/autotako/job_render.py b/src/autotako/job_render.py @@ -312,6 +312,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():