Correcciones
- Goovie: Mejora en el código - PelisFox: Corrección en la búsqueda - PelisPlus: Corrección en la detección de enlaces - TvSeriesDk: Corrección en nuevos episodios - Vi2: Mejora en la búsqueda
This commit is contained in:
@@ -206,11 +206,12 @@ def episodesxseasons(item):
|
|||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
|
from lib.generictools import privatedecrypt
|
||||||
logger.info()
|
logger.info()
|
||||||
from lib import jsunpack
|
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
|
||||||
data = get_source(item.url)
|
data = get_source(item.url)
|
||||||
|
|
||||||
patron = "onclick=clickLink\(this, '([^']+)', '([^']+)', '([^']+)'\);>"
|
patron = "onclick=clickLink\(this, '([^']+)', '([^']+)', '([^']+)'\);>"
|
||||||
@@ -218,18 +219,8 @@ def findvideos(item):
|
|||||||
headers = {'referer': item.url}
|
headers = {'referer': item.url}
|
||||||
for url, quality, language in matches:
|
for url, quality, language in matches:
|
||||||
|
|
||||||
data = httptools.downloadpage(url, headers=headers, follow_redirects=False).data
|
url = privatedecrypt(url, headers)
|
||||||
data = re.sub(r'"|\n|\r|\t| |<br>|\s{2,}', "", data)
|
if url != '':
|
||||||
packed = scrapertools.find_single_match(data, '(eval\(.*?);var')
|
|
||||||
unpacked = jsunpack.unpack(packed)
|
|
||||||
server = scrapertools.find_single_match(unpacked, "src:.'(http://\D+)/")
|
|
||||||
id = scrapertools.find_single_match(unpacked, "src:.'http://\D+/.*?description:.'(.*?).'")
|
|
||||||
if server == '':
|
|
||||||
if 'powvideo' in unpacked:
|
|
||||||
id = scrapertools.find_single_match(unpacked, ",description:.'(.*?).'")
|
|
||||||
server = 'https://powvideo.net'
|
|
||||||
url = '%s/%s' % (server, id)
|
|
||||||
if server != '' and id != '':
|
|
||||||
language = IDIOMAS[language]
|
language = IDIOMAS[language]
|
||||||
if quality.lower() == 'premium':
|
if quality.lower() == 'premium':
|
||||||
quality = '720p'
|
quality = '720p'
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ def mainlist(item):
|
|||||||
|
|
||||||
itemlist.append(item.clone(title="Por Año",
|
itemlist.append(item.clone(title="Por Año",
|
||||||
action="seccion",
|
action="seccion",
|
||||||
url=host + '/peliculas/2017/',
|
url=host + '/peliculas/2019/',
|
||||||
thumbnail=get_thumb('year', auto=True),
|
thumbnail=get_thumb('year', auto=True),
|
||||||
seccion='anios'
|
seccion='anios'
|
||||||
))
|
))
|
||||||
@@ -60,7 +60,7 @@ def mainlist(item):
|
|||||||
|
|
||||||
itemlist.append(item.clone(title="Buscar",
|
itemlist.append(item.clone(title="Buscar",
|
||||||
action="search",
|
action="search",
|
||||||
url=host + '/api/elastic/suggest?query=',
|
url=host + '/api/suggest?query=',
|
||||||
thumbnail=get_thumb('search', auto=True)
|
thumbnail=get_thumb('search', auto=True)
|
||||||
))
|
))
|
||||||
|
|
||||||
@@ -185,14 +185,16 @@ def seccion(item):
|
|||||||
def busqueda(item):
|
def busqueda(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
data = httptools.downloadpage(item.url).data
|
headers = {'referer':host, 'X-Requested-With': 'XMLHttpRequest'}
|
||||||
|
data = httptools.downloadpage(item.url, headers=headers).data
|
||||||
|
logger.debug(data)
|
||||||
dict_data = jsontools.load(data)
|
dict_data = jsontools.load(data)
|
||||||
resultados = dict_data['result'][0]['options']
|
resultados = dict_data['suggest']['result'][0]['options']
|
||||||
|
|
||||||
for resultado in resultados:
|
for resultado in resultados:
|
||||||
if 'title' in resultado['_source']:
|
if 'title' in resultado['_source']:
|
||||||
title = resultado['_source']['title']
|
title = resultado['_source']['title']
|
||||||
thumbnail = 'http://s3.amazonaws.com/pelisfox' + '/' + resultado['_source']['cover']
|
thumbnail = 'https://static.pelisfox.tv/static/movie' + '/' + resultado['_source']['cover']
|
||||||
plot = resultado['_source']['sinopsis']
|
plot = resultado['_source']['sinopsis']
|
||||||
url = host + resultado['_source']['url'] + '/'
|
url = host + resultado['_source']['url'] + '/'
|
||||||
|
|
||||||
|
|||||||
@@ -226,7 +226,6 @@ def findvideos(item):
|
|||||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||||
|
|
||||||
for video_url in matches:
|
for video_url in matches:
|
||||||
|
|
||||||
language = 'latino'
|
language = 'latino'
|
||||||
if not config.get_setting('unify'):
|
if not config.get_setting('unify'):
|
||||||
title = ' [%s]' % language.capitalize()
|
title = ' [%s]' % language.capitalize()
|
||||||
@@ -235,34 +234,39 @@ def findvideos(item):
|
|||||||
|
|
||||||
if 'pelisplus.net' in video_url:
|
if 'pelisplus.net' in video_url:
|
||||||
referer = video_url
|
referer = video_url
|
||||||
post = {'r':item.url}
|
post = {'r':item.url, 'd': 'www.pelisplus.net'}
|
||||||
post = urllib.urlencode(post)
|
post = urllib.urlencode(post)
|
||||||
video_url = video_url.replace('/v/', '/api/sources/')
|
video_url = video_url.replace('/v/', '/api/source/')
|
||||||
url_data = httptools.downloadpage(video_url, post=post, headers={'Referer':referer}).data
|
url_data = httptools.downloadpage(video_url, post=post, headers={'Referer':referer}).data
|
||||||
patron = '"file":"([^"]+)","label":"([^"]+)"'
|
patron = '"file":"([^"]+)","label":"([^"]+)"'
|
||||||
matches = re.compile(patron, re.DOTALL).findall(url_data)
|
matches = re.compile(patron, re.DOTALL).findall(url_data)
|
||||||
for url, quality in matches:
|
for url, quality in matches:
|
||||||
url = url.replace('\/', '/')
|
url = 'https://www.pelisplus.net' + url.replace('\/', '/')
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel, title='%s' + title, url=url, action='play', language=IDIOMAS[language],
|
Item(channel=item.channel, title='%s' + title, url=url, action='play', language=IDIOMAS[language],
|
||||||
quality=quality, infoLabels=item.infoLabels))
|
quality=quality, infoLabels=item.infoLabels))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
url_data = get_source(video_url)
|
if not 'vidoza' in video_url:
|
||||||
url = scrapertools.find_single_match(url_data, '<iframe src="([^"]+)"')
|
url_data = get_source(video_url)
|
||||||
if 'server' in url:
|
|
||||||
hidden_data = get_source(hidden_url)
|
|
||||||
url = scrapertools.find_single_match(hidden_data, '<iframe src="([^"]+)"')
|
|
||||||
|
|
||||||
|
|
||||||
|
if 'vidoza' not in video_url:
|
||||||
|
url = scrapertools.find_single_match(url_data, '<iframe src="([^"]+)"')
|
||||||
else:
|
else:
|
||||||
|
url = video_url
|
||||||
|
if not 'server' in url:
|
||||||
url = url
|
url = url
|
||||||
if 'pelishd.net' in url:
|
|
||||||
vip_data = httptools.downloadpage(url, headers={'Referer':item.url}, follow_redirects=False).data
|
|
||||||
dejuiced = generictools.dejuice(vip_data)
|
|
||||||
url = scrapertools.find_single_match(dejuiced, '"file":"([^"]+)"')
|
|
||||||
|
|
||||||
|
if 'pelishd' in url:
|
||||||
|
vip_data = httptools.downloadpage(url, headers={'Referer':item.url}, follow_redirects=False)
|
||||||
|
try:
|
||||||
|
dejuiced = generictools.dejuice(vip_data.data)
|
||||||
|
url = scrapertools.find_single_match(dejuiced, '"file":"([^"]+)"')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if url != '':
|
if url != '' and 'rekovers' not in url:
|
||||||
itemlist.append(Item(channel=item.channel, title='%s'+title, url=url, action='play', language=IDIOMAS[language],
|
itemlist.append(Item(channel=item.channel, title='%s'+title, url=url, action='play', language=IDIOMAS[language],
|
||||||
infoLabels=item.infoLabels))
|
infoLabels=item.infoLabels))
|
||||||
|
|
||||||
|
|||||||
@@ -154,14 +154,15 @@ def search(item, texto):
|
|||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
servers = {'netu': 'http://hqq.tv/player/embed_player.php?vid=',
|
servers = {'netu': 'https://hqq.tv/player/embed_player.php?vid=',
|
||||||
'open': 'https://openload.co/embed/',
|
'open': 'https://openload.co/embed/',
|
||||||
'netv': 'http://goo.gl/',
|
'netv': 'http://goo.gl/',
|
||||||
'gamo': 'http://gamovideo.com/embed-',
|
'gamo': 'http://gamovideo.com/embed-',
|
||||||
'powvideo': 'http://powvideo.net/embed-',
|
'powvideo': 'http://powvideo.net/embed-',
|
||||||
'play': 'http://streamplay.to/embed-',
|
'play': 'http://streamplay.to/embed-',
|
||||||
'vido': 'http://vidoza.net/embed-',
|
'vido': 'http://vidoza.net/embed-',
|
||||||
'net': 'http://hqq.tv/player/embed_player.php?vid='
|
'net': 'https://hqq.tv/player/embed_player.php?vid=',
|
||||||
|
'ntu': 'https://hqq.tv/player/embed_player.php?vid='
|
||||||
}
|
}
|
||||||
data = get_source(item.url)
|
data = get_source(item.url)
|
||||||
noemitido = scrapertools.find_single_match(data, '<p><img src=(http://darkiller.com/images/subiendo.png) border=0\/><\/p>')
|
noemitido = scrapertools.find_single_match(data, '<p><img src=(http://darkiller.com/images/subiendo.png) border=0\/><\/p>')
|
||||||
|
|||||||
@@ -80,9 +80,6 @@ def select_menu(item):
|
|||||||
itemlist.append(Item(channel=item.channel, title='Por Año', action='section', url=url,
|
itemlist.append(Item(channel=item.channel, title='Por Año', action='section', url=url,
|
||||||
thumbnail=get_thumb('year', auto=True), type='all'))
|
thumbnail=get_thumb('year', auto=True), type='all'))
|
||||||
|
|
||||||
itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url=url + 'ajax/1/?q=',
|
|
||||||
thumbnail=get_thumb("search", auto=True), type=item.type))
|
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
def sub_menu(item):
|
def sub_menu(item):
|
||||||
@@ -121,6 +118,8 @@ def sub_menu(item):
|
|||||||
url=url + '?q=%s+subtitulado' % link_type, action='list_all',
|
url=url + '?q=%s+subtitulado' % link_type, action='list_all',
|
||||||
thumbnail=get_thumb('vose', auto=True), type=item.type, send_lang='VOSE',
|
thumbnail=get_thumb('vose', auto=True), type=item.type, send_lang='VOSE',
|
||||||
link_type=link_type))
|
link_type=link_type))
|
||||||
|
itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url=url + '?q=',
|
||||||
|
thumbnail=get_thumb("search", auto=True), type=item.type, link_type=link_type))
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user