([^<]+)<\/h2>.*?([^<]+)<\/span>'
+ # if item.section == 'alpha':
+ # patron = '\d+.*?([^<]+).*?(\d{4}) '
+ # else:
+ patron = '.*?'
+ patron +='"Year">(\d{4})<.*?src="([^"]+)".*?"Title">([^"]+)
'
data = get_source(item.url)
matches = re.compile(patron, re.DOTALL).findall(data)
- for scrapedurl, scrapedthumbnail, scrapedtitle, year in matches:
+ for scrapedurl, year, scrapedthumbnail, scrapedtitle in matches:
url = scrapedurl
if "|" in scrapedtitle:
@@ -103,7 +108,7 @@ def list_all(item):
# Paginación
- url_next_page = scrapertools.find_single_match(data,'')
if url_next_page:
itemlist.append(Item(channel=item.channel, title="Siguiente >>", url=url_next_page, action='list_all',
section=item.section))
diff --git a/plugin.video.alfa/channels/pelisplusco.py b/plugin.video.alfa/channels/pelisplusco.py
index 570a4082..4f199b29 100644
--- a/plugin.video.alfa/channels/pelisplusco.py
+++ b/plugin.video.alfa/channels/pelisplusco.py
@@ -324,14 +324,15 @@ def season_episodes(item):
logger.info()
itemlist = []
- full_data = httptools.downloadpage(item.url).data
+ full_data = httptools.downloadpage(item.url+'/').data
full_data = re.sub(r'\n|\r|\t| ||\s{2,}', "", full_data) + season = str(item.infoLabels['season']) if int(season) <= 9: season = '0'+season data = scrapertools.find_single_match(full_data, 'Temporada %s(.*?)(?:down arrow|cuadre_comments)' % season) patron = '<\/i> (.*?)<\/a>' - matches = matches = re.compile(patron, re.DOTALL).findall(data) + matches = re.compile(patron, re.DOTALL).findall(data) infoLabels = item.infoLabels for url, episode in matches: episodenumber = re.sub('C.* ','',episode) @@ -354,7 +355,7 @@ def get_links_by_language(item, data): video_list = [] language = scrapertools.find_single_match(data, 'ul id="level\d_([^"]+)"\s*class=') - patron = 'data-source="([^"]+)"data-quality="([^"]+)"data-srt="([^"]+)"' + patron = 'data-source="([^"]+)"data-quality="([^"]+)"data-srt="([^"]+)?"' matches = re.compile(patron, re.DOTALL).findall(data) if language in IDIOMAS: language = IDIOMAS[language] @@ -399,7 +400,6 @@ def findvideos(item): new_url = base_url.replace('/serie/', '/player/serie/') new_url += '|%s|%s/' % (item.contentSeason, item.contentEpisodeNumber) data = get_source(new_url, referer=item.url) - patron_language ='(
- )'
matches = re.compile(patron_language, re.DOTALL).findall(data)