Merge pull request #336 from pipcat/master

Correcciones setting y powvideo
This commit is contained in:
Alfa
2018-07-05 14:56:44 -05:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@@ -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):

View File

@@ -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 = []

View File

@@ -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)