From c331a224d30ea5f92a96ca07b90d33397cb38181 Mon Sep 17 00:00:00 2001 From: j2331223 Date: Fri, 4 Aug 2017 23:06:43 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20PlayMax:=20B=C3=BAsqueda=20y=20episod?= =?UTF-8?q?ios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/playmax.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/playmax.py b/plugin.video.alfa/channels/playmax.py index 0deb6df6..5fa6c834 100644 --- a/plugin.video.alfa/channels/playmax.py +++ b/plugin.video.alfa/channels/playmax.py @@ -142,6 +142,7 @@ def busqueda(item): data = xml2dict(data) for f in data["Data"]["Fichas"]["Ficha"]: + f["Title"] = f["Title"].replace("", "") title = "%s (%s)" % (f["Title"], f["Year"]) infolab = {'year': f["Year"]} thumbnail = f["Poster"] @@ -299,7 +300,7 @@ def fichas(item): # data = re.sub(r"\n|\r|\t|\s{2}|-\s", "", data) fichas_marca = {'1': 'Siguiendo', '2': 'Pendiente', '3': 'Favorita', '4': 'Vista', '5': 'Abandonada'} - patron = '
(?:
([^<]+)
|)([^<]+)
' matches = scrapertools.find_multiple_matches(data, patron) @@ -776,7 +777,7 @@ def acciones_cuenta(item): for category, contenido in matches: itemlist.append(item.clone(action="", title=category, text_color=color3)) - patron = '
.*?href="\.([^"]+)".*?src="\.([^"]+)".*?serie="([^"]*)".*?' \ + patron = '
]*>[^<]*<[^>]+href="\.([^"]+)".*?src="\.([^"]+)".*?serie="([^"]*)".*?' \ '
(?:
([^<]+)
|)([^<]+)
' entradas = scrapertools.find_multiple_matches(contenido, patron) for scrapedurl, scrapedthumbnail, serie, episodio, scrapedtitle in entradas: From a590f29f1cfe622c8efe7222fe7f623f495ab62e Mon Sep 17 00:00:00 2001 From: j2331223 Date: Fri, 4 Aug 2017 23:16:47 +0200 Subject: [PATCH 2/2] Recover -data --- plugin.video.alfa/channels/playmax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/playmax.py b/plugin.video.alfa/channels/playmax.py index 5fa6c834..6b705e94 100644 --- a/plugin.video.alfa/channels/playmax.py +++ b/plugin.video.alfa/channels/playmax.py @@ -300,7 +300,7 @@ def fichas(item): # data = re.sub(r"\n|\r|\t|\s{2}|-\s", "", data) fichas_marca = {'1': 'Siguiendo', '2': 'Pendiente', '3': 'Favorita', '4': 'Vista', '5': 'Abandonada'} - patron = '
]*>[^<]*<[^>]+href="\.([^"]+)".*?src="\.([^"]+)".*?' \ + patron = '
]*>[^<]*<[^>]+href="\.([^"]+)".*?src-data="\.([^"]+)".*?' \ '
(?:
([^<]+)
|)([^<]+)
' matches = scrapertools.find_multiple_matches(data, patron) @@ -984,4 +984,4 @@ def xml2dict(xmldata): return_dict[tag] = value - return return_dict \ No newline at end of file + return return_dict