Correcciones setting y powvideo
This commit is contained in:
@@ -294,6 +294,7 @@ def submenu_tools(item):
|
|||||||
itemlist = list()
|
itemlist = list()
|
||||||
|
|
||||||
#Herramientas de testeo masivo
|
#Herramientas de testeo masivo
|
||||||
|
import os
|
||||||
test_path = os.path.join(config.get_runtime_path(), "channels/test.py")
|
test_path = os.path.join(config.get_runtime_path(), "channels/test.py")
|
||||||
|
|
||||||
if filetools.exists(test_path):
|
if filetools.exists(test_path):
|
||||||
|
|||||||
@@ -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
|
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")
|
path = os.path.join(get_runtime_path(), "addon.xml")
|
||||||
f = open(path, "rb")
|
f = open(path, "rb")
|
||||||
data = []
|
data = []
|
||||||
|
|||||||
@@ -44,5 +44,5 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
|||||||
def decode_powvideo_url(url):
|
def decode_powvideo_url(url):
|
||||||
tria = re.compile('[0-9a-z]{40,}', re.IGNORECASE).findall(url)[0]
|
tria = re.compile('[0-9a-z]{40,}', re.IGNORECASE).findall(url)[0]
|
||||||
gira = tria[::-1]
|
gira = tria[::-1]
|
||||||
x = gira[1:]
|
x = gira[:1] + gira[2:]
|
||||||
return re.sub(tria, x, url)
|
return re.sub(tria, x, url)
|
||||||
|
|||||||
Reference in New Issue
Block a user