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']:
|
for sub in clip['layers']['subtitles']:
|
||||||
subtitles.append({
|
subtitles.append({
|
||||||
'in': sub['in'] + position,
|
'in': position,
|
||||||
'out': sub['out'] + position,
|
'out': position + (sub['out'] - sub['in']),
|
||||||
'value': sub['value'],
|
'value': sub['value'].replace('<br>', '\n').replace('\n\n', '\n'),
|
||||||
})
|
})
|
||||||
|
|
||||||
position += clip['duration']
|
position += clip['duration']
|
||||||
|
|
Loading…
Reference in a new issue