From 0d1845ff81671820754663ef1b6c1477ae463b61 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Wed, 8 Aug 2018 11:35:27 -0500
Subject: [PATCH] cloudvideo: fix
---
plugin.video.alfa/servers/cloudvideo.py | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/plugin.video.alfa/servers/cloudvideo.py b/plugin.video.alfa/servers/cloudvideo.py
index 5ce34553..e8652eeb 100644
--- a/plugin.video.alfa/servers/cloudvideo.py
+++ b/plugin.video.alfa/servers/cloudvideo.py
@@ -10,27 +10,21 @@ from platformcode import logger
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
-
data = httptools.downloadpage(page_url)
-
if data.code == 404:
return False, "[Cloud] El archivo no existe o ha sido borrado"
-
return True, ""
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
- data = re.sub(r'"|\n|\r|\t| |
|\s{2,}', "", data)
enc_data = scrapertools.find_single_match(data, "type='text/javascript'>(.*?)")
dec_data = jsunpack.unpack(enc_data)
- sources = scrapertools.find_single_match(dec_data, "sources:\[(.*?)]")
- patron = "{file:(.*?)}"
- matches = re.compile(patron, re.DOTALL).findall(sources)
- scrapertools.printMatches(matches)
+ sources = scrapertools.find_single_match(data, "