From d9db40f595947a237de19121bf93905cad8f5f64 Mon Sep 17 00:00:00 2001 From: paezner Date: Wed, 10 Apr 2019 22:40:26 +0200 Subject: [PATCH] cambio de estructura --- plugin.video.alfa/channels/javtasty.py | 10 +++++++--- plugin.video.alfa/channels/qwertty.py | 19 ++++++++++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/plugin.video.alfa/channels/javtasty.py b/plugin.video.alfa/channels/javtasty.py index c35c1a6b..89d9fa2c 100755 --- a/plugin.video.alfa/channels/javtasty.py +++ b/plugin.video.alfa/channels/javtasty.py @@ -49,7 +49,8 @@ def lista(item): action = "play" if config.get_setting("menu_info", "javtasty"): action = "menu_info" - patron = 'div class="video-item.*?href="([^"]+)".*?' + # PURGA los PRIVATE + patron = 'div class="video-item\s+".*?href="([^"]+)".*?' patron += 'data-original="([^"]+)" ' patron += 'alt="([^"]+)"(.*?)fa fa-clock-o">([^<]+)<' matches = scrapertools.find_multiple_matches(data, patron) @@ -89,12 +90,15 @@ def play(item): logger.info() itemlist = [] data = httptools.downloadpage(item.url).data - videourl = scrapertools.find_single_match(data, "video_url:\s*'([^']+)'") + videourl = scrapertools.find_single_match(data, "video_alt_url2:\s*'([^']+)'") if videourl: - itemlist.append(['.mp4 [directo]', videourl]) + itemlist.append(['.mp4 HD [directo]', videourl]) videourl = scrapertools.find_single_match(data, "video_alt_url:\s*'([^']+)'") if videourl: itemlist.append(['.mp4 HD [directo]', videourl]) + videourl = scrapertools.find_single_match(data, "video_url:\s*'([^']+)'") + if videourl: + itemlist.append(['.mp4 [directo]', videourl]) if item.extra == "play_menu": return itemlist, data return itemlist diff --git a/plugin.video.alfa/channels/qwertty.py b/plugin.video.alfa/channels/qwertty.py index 53a3c85e..35b3fe06 100644 --- a/plugin.video.alfa/channels/qwertty.py +++ b/plugin.video.alfa/channels/qwertty.py @@ -58,14 +58,17 @@ def lista(item): data = re.sub(r"\n|\r|\t| |
", "", data) patron = '
Next') if next_page=="": next_page = scrapertools.find_single_match(data,'
  • .*?
  • ') @@ -82,7 +85,17 @@ def play(item): url = scrapertools.find_single_match(data,'