From eb6595fcf447b9e66234ca9a81974f08ed556b4b Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Sat, 9 Sep 2017 08:41:03 -0500 Subject: [PATCH 1/2] Actualizado rapidvideo: fix --- plugin.video.alfa/servers/rapidvideo.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugin.video.alfa/servers/rapidvideo.py b/plugin.video.alfa/servers/rapidvideo.py index 5aad58d3..392014c2 100755 --- a/plugin.video.alfa/servers/rapidvideo.py +++ b/plugin.video.alfa/servers/rapidvideo.py @@ -30,11 +30,15 @@ def test_video_exists(page_url): def get_video_url(page_url, premium=False, user="", password="", video_password=""): logger.info("url=" + page_url) video_urls = [] - data = httptools.downloadpage(page_url).data - urls = scrapertools.find_multiple_matches(data, '"file":"([^"]+)","label":"[^"]*","res":"([^"]+)"') - for mediaurl, res in urls: - ext = scrapertools.get_filename_from_url(mediaurl)[-4:] - video_urls.append(['%s %sp [rapidvideo]' % (ext, res), mediaurl.replace("\\", "")]) + bloque = scrapertools.find_single_match(data, 'video class.*?home_video') + patron = 'https://www.rapidvideo.com/e/[^"]+' + match = scrapertools.find_multiple_matches(data, patron) + for url1 in match: + res = scrapertools.find_single_match(url1, '=(\w+)') + data = httptools.downloadpage(url1).data + url = scrapertools.find_single_match(data, 'source src="([^"]+)') + ext = scrapertools.get_filename_from_url(url)[-4:] + video_urls.append(['%s %s [rapidvideo]' % (ext, res), url]) return video_urls From bb018cc4d51d2bf9ae84ff8ae29675e4d5b0ec04 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Sat, 9 Sep 2017 10:01:25 -0500 Subject: [PATCH 2/2] Update rapidvideo.py --- plugin.video.alfa/servers/rapidvideo.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin.video.alfa/servers/rapidvideo.py b/plugin.video.alfa/servers/rapidvideo.py index 392014c2..a0e591e4 100755 --- a/plugin.video.alfa/servers/rapidvideo.py +++ b/plugin.video.alfa/servers/rapidvideo.py @@ -31,7 +31,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= logger.info("url=" + page_url) video_urls = [] data = httptools.downloadpage(page_url).data - bloque = scrapertools.find_single_match(data, 'video class.*?home_video') patron = 'https://www.rapidvideo.com/e/[^"]+' match = scrapertools.find_multiple_matches(data, patron) for url1 in match: