From f3effe9a7fb68cbc984900b5796fe8865031b095 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 30 Oct 2017 10:13:40 -0300 Subject: [PATCH] Corregidas series en pelisplus --- plugin.video.alfa/channels/pelisplus.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/plugin.video.alfa/channels/pelisplus.py b/plugin.video.alfa/channels/pelisplus.py index 49313e05..430ee381 100644 --- a/plugin.video.alfa/channels/pelisplus.py +++ b/plugin.video.alfa/channels/pelisplus.py @@ -428,13 +428,18 @@ def get_vip(url): itemlist =[] url= url.replace('reproductor','vip') data = httptools.downloadpage(url).data - patron = ' ' - video_urls = scrapertools.find_multiple_matches(data,'') + video_urls = scrapertools.find_multiple_matches(data,'') for item in video_urls: - id, tipo, lang= scrapertools.find_single_match(item,'plus\/(\d+)\/.*?=(\d+).*?=(.*)') - new_url = 'https://www.elreyxhd.com/pelisplus.php?id=%s&tipo=%s&idioma=%s' % (id, tipo, lang) - data=httptools.downloadpage(new_url, follow_redirects=False).headers - itemlist.extend(servertools.find_video_items(data=str(data))) + if 'elreyxhd' in item: + if 'plus'in item: + id, tipo, lang= scrapertools.find_single_match(item,'plus\/(\d+)\/.*?=(\d+).*?=(.*)') + new_url = 'https://www.elreyxhd.com/pelisplus.php?id=%s&tipo=%s&idioma=%s' % (id, tipo, lang) + data=httptools.downloadpage(new_url, follow_redirects=False).headers + else: + id = scrapertools.find_single_match(item,'episodes\/(\d+)') + new_url = 'https://www.elreyxhd.com/samir.php?id=%s&tipo=capitulo&idioma=latino&x=&sv=' % id + data=httptools.downloadpage(new_url, follow_redirects=False).headers + itemlist.extend(servertools.find_video_items(data=str(data))) return itemlist