migliorie Vup Player

This commit is contained in:
Alhaziel
2020-01-17 17:41:47 +01:00
parent c3580f3874
commit f38e8cad58
4 changed files with 4 additions and 73 deletions
+3 -2
View File
@@ -7,6 +7,8 @@ from platformcode import logger, config
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
data = httptools.downloadpage(page_url)
global data
data = data.data
if data.code == 404:
return False, config.get_localized_string(70449)
return True, ""
@@ -15,8 +17,7 @@ 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
logger.info('VUP DATA= '+ data)
global data
patron = r'sources:\s*\[\{src:\s*"([^"]+)"'
matches = scrapertools.find_multiple_matches(data, patron)
for url in matches: