Fix httptools e trailertools per kodi 19

This commit is contained in:
Alhaziel01
2020-08-17 18:16:38 +02:00
parent 76df639e42
commit 45c38ff7ee
2 changed files with 6 additions and 5 deletions

View File

@@ -417,7 +417,8 @@ def downloadpage(url, **opt):
response['url'] = response['url'].replace('https://web.archive.org/save/', '')
if type(response['data']) != str:
response['data'] = response['data'].decode('UTF-8')
try: response['data'] = response['data'].decode('utf-8')
except: response['data'] = response['data'].decode('ISO-8859-1')
if not response['data']:
response['data'] = ''