mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
subtitle: py3 fixes
This commit is contained in:
parent
abd38b55ea
commit
e449d8c471
@ -64,8 +64,7 @@ class subtitle(object):
|
|||||||
data += "\n"
|
data += "\n"
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
if is_py2:
|
data = data.encode('utf8')
|
||||||
data = data.encode('utf8')
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def json(self, subdata):
|
def json(self, subdata):
|
||||||
@ -99,8 +98,8 @@ class subtitle(object):
|
|||||||
if int(n) > 0:
|
if int(n) > 0:
|
||||||
subs += "%s\n" % i.text
|
subs += "%s\n" % i.text
|
||||||
|
|
||||||
if is_py2:
|
|
||||||
subs = subs.encode('utf8')
|
subs = subs.encode('utf8')
|
||||||
return subs
|
return subs
|
||||||
|
|
||||||
def smi(self, subdata):
|
def smi(self, subdata):
|
||||||
|
Loading…
Reference in New Issue
Block a user