This commit is contained in:
rlx 2017-08-10 13:34:43 +02:00
parent 46b94fa3e3
commit 8874598ef5

View file

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