From ce47e23e1857eca4b40403340c3d169881f60a20 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 29 Jan 2026 17:05:16 +0100 Subject: [PATCH] again --- render.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/render.py b/render.py index 5baf3fb..aad9f7f 100644 --- a/render.py +++ b/render.py @@ -945,6 +945,7 @@ def generate_clips(options): source = selected.data.path ext = os.path.splitext(source)[1] type_ = e.data['type'][0].lower() + ai_type = None if type_.startswith('ai:'): if 'ai' not in clip: clip['ai'] = {} @@ -955,7 +956,8 @@ def generate_clips(options): n += 1 type_ = 'ai:' + ai_type target = os.path.join(prefix, 'video', type_, i.data['title'] + ext) - clip['ai'][ai_type] = target + if ai_type: + clip['ai'][ai_type] = target if type_ == "source": source_target = target clip['loudnorm'] = get_loudnorm(e.files.filter(selected=True)[0])