1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

subtitle_sami: fix unicode encode issue

This commit is contained in:
Johan Andersson 2013-06-27 23:03:14 +02:00
parent 7da961b511
commit 4c858f173f

View File

@ -186,6 +186,8 @@ def subtitle_sami(options, data):
options.output = "%s.srt" % filename.group(1)
log.info("Subtitle: %s", options.output)
fd = open(options.output, "w")
if sys.version_info < (3, 0):
subs = subs.encode('utf8')
fd.write(subs)
fd.close()