Fix Cloudvideo

This commit is contained in:
Alhaziel
2019-11-09 11:50:25 +01:00
committed by Alhaziel01
parent b2d1b804cd
commit 4ac0002bca
2 changed files with 3 additions and 7 deletions

View File

@@ -4,11 +4,7 @@
"ignore_urls": [],
"patterns": [
{
"pattern": "https://cloudvideo.tv/embed-([a-z0-9]+).html",
"url": "https://cloudvideo.tv/embed-\\1.html"
},
{
"pattern": "https://cloudvideo.tv/([a-z0-9]+)",
"pattern": "cloudvideo.tv/(?:embed-)?([a-z0-9]+).html",
"url": "https://cloudvideo.tv/embed-\\1.html"
}
]

View File

@@ -19,8 +19,8 @@ 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
enc_data = scrapertools.find_single_match(data, "type='text/javascript'>(.*?)</script>")
dec_data = jsunpack.unpack(enc_data)
# enc_data = scrapertools.find_single_match(data, "type='text/javascript'>(.*?)</script>")
# dec_data = jsunpack.unpack(enc_data)
sources = scrapertools.find_single_match(data, "<source(.*?)</source")
patron = 'src="([^"]+)'
matches = scrapertools.find_multiple_matches(sources, patron)