diff --git a/fcp2srt.py b/fcp2srt.py index c29b2c9..9d49f70 100755 --- a/fcp2srt.py +++ b/fcp2srt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import division import lxml @@ -39,5 +39,5 @@ for g in tree.xpath('//generatoritem'): 'in': _start/fps, 'out': (_end-1)/fps, 'value': value }) -with open(target, 'w') as f: +with open(target, 'wb') as f: f.write(ox.srt.encode(data))