Correcciones

Correcciones:

- DoramasMP4: Cambio de dominio
- PelisPlus: Corrección para temporadas
- SeriesPapaya: Corrección en reproducción
- Vi2: Corrección por cambio de estructura
This commit is contained in:
Alfa-beto
2019-01-23 11:00:47 -03:00
committed by GitHub
parent cff6417223
commit 9a28c1a5dd
4 changed files with 22 additions and 18 deletions
+15 -13
View File
@@ -86,8 +86,7 @@ def sub_menu(item):
logger.info()
itemlist = []
url = host + '/%s/es/' % item.type
search_url = host + '/search/'
url = host + '/%s/es/ajax/1/' % item.type
link_type = item.title.lower()
if link_type == 'streaming':
link_type = 'flash'
@@ -119,8 +118,8 @@ def sub_menu(item):
url=url + '?q=%s+subtitulado' % link_type, action='list_all',
thumbnail=get_thumb('vose', auto=True), type=item.type, send_lang='VOSE',
link_type=link_type))
itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url=search_url + '?q=',
thumbnail=get_thumb("search", auto=True), type='search', 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
@@ -145,7 +144,7 @@ def section(item):
for scrapedurl, scrapedtitle in matches:
title = scrapedtitle
url = host+scrapedurl
url = host+scrapedurl.replace('/?','/ajax/1/?')
if (item.title=='Generos' and title.lower() not in excluded and not title.isdigit()) or (item.title=='Por Año' and title.isdigit()):
itemlist.append(Item(channel=item.channel, url=url, title=title, action='list_all', type=item.type))
@@ -159,8 +158,11 @@ def list_all(item):
listed =[]
quality=''
infoLabels = {}
data= get_source(item.url, referer='%s/%s/es/' %(host, item.type))
json_data= jsontools.load(get_source(item.url))
data = json_data['render']
data = re.sub(r'\n|\r|\t|&nbsp;|<br>|\s{2,}', "", data)
#if item.type == 'peliculas':
patron = '<img class="cover".*?src="([^"]+)" data-id="\d+" '
patron +='alt="Ver ([^\(]+)(.*?)">'
patron += '<div class="mdl-card__menu"><a class="clean-link" href="([^"]+)">'
@@ -222,7 +224,7 @@ def list_all(item):
infoLabels = infoLabels
)
if item.type == 'peliculas' or item.type == 'all' or item.type == 'search':
if item.type == 'peliculas' or item.type == 'all':
new_item.contentTitle = scrapedtitle
else:
scrapedtitle = scrapedtitle.split(' - ')
@@ -235,12 +237,12 @@ def list_all(item):
itemlist.sort(key=lambda it: it.title)
# Paginación
# if json_data['next']:
# actual_page = scrapertools.find_single_match(item.url, 'ajax/(\d+)/')
# next_page =int(actual_page) + 1
# url_next_page = item.url.replace('ajax/%s' % actual_page, 'ajax/%s' % next_page)
# itemlist.append(item.clone(title="Siguiente >>", url=url_next_page, type=item.type,
# action='list_all', send_lang=item.send_lang))
if json_data['next']:
actual_page = scrapertools.find_single_match(item.url, 'ajax/(\d+)/')
next_page =int(actual_page) + 1
url_next_page = item.url.replace('ajax/%s' % actual_page, 'ajax/%s' % next_page)
itemlist.append(item.clone(title="Siguiente >>", url=url_next_page, type=item.type,
action='list_all', send_lang=item.send_lang))
return itemlist