Fix Cloudvideo
This commit is contained in:
@@ -4,11 +4,7 @@
|
|||||||
"ignore_urls": [],
|
"ignore_urls": [],
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"pattern": "https://cloudvideo.tv/embed-([a-z0-9]+).html",
|
"pattern": "cloudvideo.tv/(?:embed-)?([a-z0-9]+).html",
|
||||||
"url": "https://cloudvideo.tv/embed-\\1.html"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "https://cloudvideo.tv/([a-z0-9]+)",
|
|
||||||
"url": "https://cloudvideo.tv/embed-\\1.html"
|
"url": "https://cloudvideo.tv/embed-\\1.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
|||||||
logger.info("url=" + page_url)
|
logger.info("url=" + page_url)
|
||||||
video_urls = []
|
video_urls = []
|
||||||
data = httptools.downloadpage(page_url).data
|
data = httptools.downloadpage(page_url).data
|
||||||
enc_data = scrapertools.find_single_match(data, "type='text/javascript'>(.*?)</script>")
|
# enc_data = scrapertools.find_single_match(data, "type='text/javascript'>(.*?)</script>")
|
||||||
dec_data = jsunpack.unpack(enc_data)
|
# dec_data = jsunpack.unpack(enc_data)
|
||||||
sources = scrapertools.find_single_match(data, "<source(.*?)</source")
|
sources = scrapertools.find_single_match(data, "<source(.*?)</source")
|
||||||
patron = 'src="([^"]+)'
|
patron = 'src="([^"]+)'
|
||||||
matches = scrapertools.find_multiple_matches(sources, patron)
|
matches = scrapertools.find_multiple_matches(sources, patron)
|
||||||
|
|||||||
Reference in New Issue
Block a user