parent
630b848f6e
commit
f9037dcbd8
1 changed files with 3 additions and 1 deletions
|
@ -2395,9 +2395,11 @@ class API():
|
|||
log.error('Could not temporarily download subtitle %s' % url)
|
||||
return
|
||||
else:
|
||||
log.debug('Writing temp subtitle to %s' % path)
|
||||
r.encoding = 'utf-8'
|
||||
with open(path, 'wb') as f:
|
||||
f.write(r.content)
|
||||
# r.content does not always seem to be encoded!
|
||||
f.write(tryEncode(r.content))
|
||||
return path
|
||||
|
||||
def GetKodiPremierDate(self):
|
||||
|
|
Loading…
Reference in a new issue