fix subs
This commit is contained in:
parent
46b94fa3e3
commit
8874598ef5
1 changed files with 3 additions and 3 deletions
6
edit.py
6
edit.py
|
@ -86,9 +86,9 @@ if __name__ == '__main__':
|
|||
|
||||
for sub in clip['layers']['subtitles']:
|
||||
subtitles.append({
|
||||
'in': sub['in'] + position,
|
||||
'out': sub['out'] + position,
|
||||
'value': sub['value'],
|
||||
'in': position,
|
||||
'out': position + (sub['out'] - sub['in']),
|
||||
'value': sub['value'].replace('<br>', '\n').replace('\n\n', '\n'),
|
||||
})
|
||||
|
||||
position += clip['duration']
|
||||
|
|
Loading…
Reference in a new issue