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