From 90f1954317b6f53468b6c5148de2f7d3a31ffa61 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 25 Jan 2026 18:53:31 +0100 Subject: [PATCH] fix ai symlinks --- render.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/render.py b/render.py index bef04a6..b08de77 100644 --- a/render.py +++ b/render.py @@ -883,13 +883,15 @@ def generate_clips(options): n += 1 clip['ai'][ai_type] = target type_ = ai_type - else: - clip[type_] = target target = os.path.join(prefix, 'video', type_, i.data['title'] + ext) - os.makedirs(os.path.dirname(target), exist_ok=True) if type_ == "source": source_target = target clip['loudnorm'] = get_loudnorm(e.files.filter(selected=True)[0]) + if type_.startswith('ai:'): + clip['ai'][ai_type] = target + else: + clip[type_] = target + os.makedirs(os.path.dirname(target), exist_ok=True) if os.path.islink(target): os.unlink(target) os.symlink(source, target)