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