fix verifica link e unshortenit (linkup) su kodi 19

This commit is contained in:
mac12m99
2021-02-21 18:46:34 +01:00
parent 1dfd873d86
commit 0d49a4e8dc
2 changed files with 5 additions and 5 deletions

View File

@@ -745,9 +745,9 @@ def check_video_link(item, timeout=3):
url = item.url
server = item.server
NK = "[COLOR 0xFFF9B613][B]" + u"\u2022".encode('utf-8') + "[/B][/COLOR]"
OK = "[COLOR 0xFF00C289][B]" + u"\u2022".encode('utf-8') + "[/B][/COLOR]"
KO = "[COLOR 0xFFC20000][B]" + u"\u2022".encode('utf-8') + "[/B][/COLOR]"
NK = u"[COLOR 0xFFF9B613][B]\u2022[/B][/COLOR]"
OK = u"[COLOR 0xFF00C289][B]\u2022[/B][/COLOR]"
KO = u"[COLOR 0xFFC20000][B]\u2022[/B][/COLOR]"
try:
server_module = __import__('servers.%s' % server, None, None, ["servers.%s" % server])

View File

@@ -558,7 +558,7 @@ class UnshortenIt(object):
elif 'delta' in uri:
uri = uri.replace('/delta/', '/adelta/')
elif '/ga/' in uri:
uri = b64decode(uri.split('/')[-1]).strip()
uri = b64decode(uri.split('/')[-1]).strip().decode()
elif '/speedx/' in uri:
uri = uri.replace('http://linkup.pro/speedx', 'http://speedvideo.net')
else:
@@ -727,4 +727,4 @@ def findlinks(text):
text += '\n' + l
else:
text += '\n' + str(link.result()[0])
return text
return text