Correcciones
This commit is contained in:
@@ -664,14 +664,12 @@ def findvideos(item):
|
||||
data = agrupa_datos(httptools.downloadpage(item.url).data)
|
||||
data_obf = scrapertools.find_single_match(data, "var ad\s*=\s*'([^']+)'")
|
||||
data_decrypt = jsontools.load(obfs(base64.b64decode(data_obf), 126 - int(key)))
|
||||
|
||||
infolabels = {}
|
||||
year = scrapertools.find_single_match(data, '<span>Año:\s*</span>.*?(\d{4})')
|
||||
infolabels["year"] = year
|
||||
matches = []
|
||||
for match in data_decrypt:
|
||||
prov = eval(scrapertools.find_single_match(data_js, 'p\[%s\]\s*=\s*(\{.*?\}[\']\})' % match["provider"]))
|
||||
|
||||
server_url = scrapertools.find_single_match(prov['l'], 'return\s*"(.*?)"')
|
||||
|
||||
url = '%s%s' % (server_url, match['code'])
|
||||
@@ -831,20 +829,10 @@ def get_status(status, type, id):
|
||||
## --------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
def jhexdecode(t):
|
||||
|
||||
|
||||
|
||||
k = re.sub(r'(_0x.{4})(?=\(|=)', 'var_0', t).replace('\'','\"')
|
||||
def to_hex(c, type):
|
||||
h = int("%s" % c, 16)
|
||||
if type == '1':
|
||||
return 'p[%s]' % h
|
||||
if type == '2':
|
||||
return '[%s]' % h
|
||||
|
||||
x = re.sub(r'(?:p\[)(0x.{,2})(?:\])', lambda z: to_hex(z.group(1), '1'), k)
|
||||
y = re.sub(r'(?:\(")(0x.{,2})(?:"\))', lambda z: to_hex(z.group(1), '2'), x)
|
||||
r = re.sub(r'_\d+x\w+x(\d+)', 'var_' + r'\1', t)
|
||||
r = re.sub(r'_\d+x\w+', 'var_0', r)
|
||||
|
||||
def to_hx(c):
|
||||
h = int("%s" % c.groups(0), 16)
|
||||
@@ -852,14 +840,8 @@ def jhexdecode(t):
|
||||
return chr(h)
|
||||
else:
|
||||
return ""
|
||||
r = re.sub(r'(?:\\|)x(\w{2})(?=[^\w\d])', to_hx, y).replace('var ', '')
|
||||
server_list = eval(scrapertools.find_single_match(r, '=(\[.*?\])'))
|
||||
|
||||
for val in range(475,0, -1):
|
||||
server_list.append(server_list[0])
|
||||
server_list.pop(0)
|
||||
|
||||
r = re.sub(r'=\[(.*?)\]', '=%s' % str(server_list), r)
|
||||
r = re.sub(r'(?:\\|)x(\w{2})', to_hx, r).replace('var ', '')
|
||||
|
||||
f = eval(scrapertools.get_match(r, '\s*var_0\s*=\s*([^;]+);'))
|
||||
for i, v in enumerate(f):
|
||||
@@ -875,7 +857,6 @@ def jhexdecode(t):
|
||||
|
||||
return r
|
||||
|
||||
|
||||
def obfs(data, key, n=126):
|
||||
chars = list(data)
|
||||
for i in range(0, len(chars)):
|
||||
|
||||
Reference in New Issue
Block a user