Commit 1efede4d authored by liuzheng712's avatar liuzheng712

bugfix

parent a1187757
......@@ -90,11 +90,6 @@ def renderJSON(script_path, time_file_path):
offset = 0
for t in timing:
dt = scriptf.read(t[1])
# try:
# data = dt.encode('unicode_escape').decode('utf-8', 'ignore')
# except (UnicodeEncodeError, UnicodeDecodeError):
# data = dt.decode('utf-8', 'ignore')
# print ('###### (%s, %s)' % (t[1], repr(data)))
offset += t[0]
ret[str(offset/float(1000))] = dt.decode('utf-8', 'replace')
return dumps(ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment