dont fail if no subtitles layer is defined
This commit is contained in:
parent
4ea2328fe5
commit
70cfee4f73
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def findClips(request):
|
||||||
'id': a['public_id'],
|
'id': a['public_id'],
|
||||||
'value': a['value'],
|
'value': a['value'],
|
||||||
}
|
}
|
||||||
if a['layer'] == subtitles['id'] and not a['value']:
|
if subtitles and a['layer'] == subtitles['id'] and not a['value']:
|
||||||
del l['id']
|
del l['id']
|
||||||
if add_layer:
|
if add_layer:
|
||||||
l['layer'] = a['layer']
|
l['layer'] = a['layer']
|
||||||
|
|
Loading…
Reference in a new issue