From 65f209313657f0a55d66bf49ec3140b6067c0d93 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Sun, 21 Feb 2021 18:46:34 +0100 Subject: [PATCH] fix verifica link e unshortenit (linkup) su kodi 19 --- core/servertools.py | 6 +++--- lib/unshortenit.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/servertools.py b/core/servertools.py index 04e38f75..3674654c 100644 --- a/core/servertools.py +++ b/core/servertools.py @@ -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]) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index 538a568c..7da6f4f1 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -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 \ No newline at end of file + return text