From 3bd39826b69ca741b695030ef40f291dec26a922 Mon Sep 17 00:00:00 2001 From: Alfa-beto <30815244+Alfa-beto@users.noreply.github.com> Date: Wed, 28 Nov 2018 10:21:40 -0300 Subject: [PATCH] Correcciones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BlogHorror: Corrección por cambio de estructura - PelisPlus: Corrección para series - TuPeliculas: Corrección por cambio de estructura - VeSeriesOnline: Corrección en la detección de enlaces --- plugin.video.alfa/channels/bloghorror.py | 6 +++--- plugin.video.alfa/channels/pelisplus.py | 2 +- plugin.video.alfa/channels/tupelicula.py | 3 --- plugin.video.alfa/channels/veseriesonline.py | 17 +++++++++++------ 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/plugin.video.alfa/channels/bloghorror.py b/plugin.video.alfa/channels/bloghorror.py index 210c62bb..bbbda1d2 100644 --- a/plugin.video.alfa/channels/bloghorror.py +++ b/plugin.video.alfa/channels/bloghorror.py @@ -47,11 +47,11 @@ def list_all(item): itemlist = [] data = get_source(item.url) - patron = '.?<.*?href="([^"]+)" title="([^"]+)".*?src="([^"]+)".*?' + patron = '
([^<]+)' matches = re.compile(patron, re.DOTALL).findall(data) - for scrapedurl, scrapedtitle, scrapedthumbnail in matches: + for scrapedthumbnail, scrapedurl, scrapedtitle in matches: url = scrapedurl title = scrapertools.find_single_match(scrapedtitle, '(.*?)(?:|\(|\| )\d{4}').strip() year = scrapertools.find_single_match(scrapedtitle, '(\d{4})') @@ -68,7 +68,7 @@ def list_all(item): if itemlist != []: - next_page = scrapertools.find_single_match(data, '