Fix DooD Stream

This commit is contained in:
Alhaziel01
2020-12-22 12:10:02 +01:00
parent 1f407ade58
commit 35d7480c1f
2 changed files with 4 additions and 2 deletions

View File

@@ -4,8 +4,8 @@
"ignore_urls": [],
"patterns": [
{
"pattern": "(https://dood(?:stream|).(?:watch|to|com)/(?:e|d)/[a-z0-9]+)",
"url": "\\1"
"pattern": "https://dood(?:stream|).(?:watch|to|com)/((?:e|d)/[a-z0-9]+)",
"url": "https://dood.to/\\1"
}
]
},

View File

@@ -30,6 +30,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
label = scrapertools.find_single_match(data, r'type:\s*"video/([^"]+)"')
logger.debug(data)
base_url, token = scrapertools.find_single_match(data, r'''dsplayer\.hotkeys[^']+'([^']+).+?function\s*makePlay.+?return[^?]+([^"]+)''')
url = '{}{}{}|Referer={}'.format(httptools.downloadpage(host + base_url, headers={"Referer": page_url}).data, token, str(int(time.time() * 1000)), page_url)
video_urls.append([ label + ' [DooD Stream]', url])