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:
parent
7da961b511
commit
4c858f173f
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user