again
This commit is contained in:
parent
698a293d5e
commit
ce47e23e18
1 changed files with 3 additions and 1 deletions
|
|
@ -945,6 +945,7 @@ def generate_clips(options):
|
||||||
source = selected.data.path
|
source = selected.data.path
|
||||||
ext = os.path.splitext(source)[1]
|
ext = os.path.splitext(source)[1]
|
||||||
type_ = e.data['type'][0].lower()
|
type_ = e.data['type'][0].lower()
|
||||||
|
ai_type = None
|
||||||
if type_.startswith('ai:'):
|
if type_.startswith('ai:'):
|
||||||
if 'ai' not in clip:
|
if 'ai' not in clip:
|
||||||
clip['ai'] = {}
|
clip['ai'] = {}
|
||||||
|
|
@ -955,7 +956,8 @@ def generate_clips(options):
|
||||||
n += 1
|
n += 1
|
||||||
type_ = 'ai:' + ai_type
|
type_ = 'ai:' + ai_type
|
||||||
target = os.path.join(prefix, 'video', type_, i.data['title'] + ext)
|
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":
|
if type_ == "source":
|
||||||
source_target = target
|
source_target = target
|
||||||
clip['loudnorm'] = get_loudnorm(e.files.filter(selected=True)[0])
|
clip['loudnorm'] = get_loudnorm(e.files.filter(selected=True)[0])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue