Altro Fix Wstream
This commit is contained in:
@@ -7,8 +7,12 @@
|
||||
"find_videos": {
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "wstream\\.video.*?(?<!api)(?:=|/)(?:embed-)?([a-z0-9A-Z]+)(?:[^/_.a-z0-9A-Z]|$|\\.)",
|
||||
"pattern": "wstream\\.video.*?(?<!api)(?:=|/)(?:embed-)?([a-z0-9A-Z]+)(?:[^/_.a-z0-9A-Z]|$)",
|
||||
"url": "https://wstream.video/video.php?file_code=\\1"
|
||||
},
|
||||
{
|
||||
"pattern": "wstream\\.video/([a-zA-Z0-9/]+.html)",
|
||||
"url": "https://wstream.video/\\1"
|
||||
}
|
||||
],
|
||||
"ignore_urls": []
|
||||
|
||||
@@ -22,11 +22,11 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
logger.info("[Wstream] url=" + page_url)
|
||||
video_urls = []
|
||||
|
||||
if '/streaming.php' in page_url:
|
||||
code = httptools.downloadpage(page_url, headers=headers, follow_redirects=False).headers['location'].split('/')[-1]
|
||||
if '/streaming.php' in page_url or 'html' in page_url:
|
||||
code = httptools.downloadpage(page_url, headers=headers, follow_redirects=False).headers['location'].split('/')[-1].replace('.html','')
|
||||
logger.info('WCODE='+code)
|
||||
page_url = 'https://wstream.video/video.php?file_code=' + code
|
||||
|
||||
|
||||
code = page_url.split('=')[-1]
|
||||
data = httptools.downloadpage(page_url, headers=headers, follow_redirects=False).data
|
||||
ID = scrapertools.find_single_match(data, r'''input\D*id=(?:'|")([^'"]+)(?:'|")''')
|
||||
|
||||
Reference in New Issue
Block a user