diff --git a/edit.py b/edit.py index 37a0785..ec31b5e 100755 --- a/edit.py +++ b/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('
', '\n').replace('\n\n', '\n'), }) position += clip['duration']