From 2523dc6d8424c0882b9ef99a0e85cfdccda2356a Mon Sep 17 00:00:00 2001 From: pipcat Date: Thu, 5 Jul 2018 16:26:07 +0200 Subject: [PATCH] Correcciones setting y powvideo --- plugin.video.alfa/channels/setting.py | 1 + plugin.video.alfa/platformcode/config.py | 1 + plugin.video.alfa/servers/powvideo.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/setting.py b/plugin.video.alfa/channels/setting.py index e067bd4f..a22d45c9 100644 --- a/plugin.video.alfa/channels/setting.py +++ b/plugin.video.alfa/channels/setting.py @@ -294,6 +294,7 @@ def submenu_tools(item): itemlist = list() #Herramientas de testeo masivo + import os test_path = os.path.join(config.get_runtime_path(), "channels/test.py") if filetools.exists(test_path): diff --git a/plugin.video.alfa/platformcode/config.py b/plugin.video.alfa/platformcode/config.py index 7d22bb0c..04fc22c9 100644 --- a/plugin.video.alfa/platformcode/config.py +++ b/plugin.video.alfa/platformcode/config.py @@ -19,6 +19,7 @@ def get_addon_version(linea_inicio=0, total_lineas=2): ''' Devuelve el número de de versión del addon, obtenido desde el archivo addon.xml ''' + return __settings__.getAddonInfo('version') path = os.path.join(get_runtime_path(), "addon.xml") f = open(path, "rb") data = [] diff --git a/plugin.video.alfa/servers/powvideo.py b/plugin.video.alfa/servers/powvideo.py index de0c0c4c..79991591 100755 --- a/plugin.video.alfa/servers/powvideo.py +++ b/plugin.video.alfa/servers/powvideo.py @@ -44,5 +44,5 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= def decode_powvideo_url(url): tria = re.compile('[0-9a-z]{40,}', re.IGNORECASE).findall(url)[0] gira = tria[::-1] - x = gira[1:] + x = gira[:1] + gira[2:] return re.sub(tria, x, url)