This commit is contained in:
j 2026-01-29 17:05:16 +01:00
commit ce47e23e18

View file

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