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])