fix ilgenio e vcrypt su kodi 19

This commit is contained in:
marco
2020-12-20 20:54:18 +01:00
parent 923beb5bba
commit 3ffb7498f4
5 changed files with 397 additions and 380 deletions

View File

@@ -532,7 +532,7 @@ class UnshortenIt(object):
spl = uri.split('/')
spl[3] += '1'
if spl[3] == 'wss1':
spl[4] = b64encode(spl[4])
spl[4] = b64encode(spl[4].encode('utf-8')).decode('utf-8')
uri = '/'.join(spl)
r = httptools.downloadpage(uri, timeout=self._timeout, headers=headers, follow_redirects=False)
if 'Wait 1 hour' in r.data:
@@ -544,7 +544,6 @@ class UnshortenIt(object):
if uri == prev_uri:
logger.info('Use Cloudscraper')
uri = httptools.downloadpage(uri, timeout=self._timeout, headers=headers, follow_redirects=False, cf=True).headers['location']
# from core.support import dbg;dbg()
if "snip." in uri:
if 'out_generator' in uri:
uri = re.findall('url=(.*)$', uri)[0]