fix doodstream
This commit is contained in:
@@ -34,7 +34,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
if match:
|
||||
url, token = match
|
||||
ret = httptools.downloadpage(host + url, headers=headers, cloudscraper=True).data
|
||||
video_urls.append(['mp4 [DooD Stream]', '{}{}{}{}|Referer={}'.format(randomize(ret), url, token, int(time.time() * 1000), host)])
|
||||
video_urls.append(['mp4 [DooD Stream]', '{}{}{}{}|User-Agent={}&Referer={}'.format(randomize(ret), url, token, int(time.time() * 1000), httptools.get_user_agent(), host)])
|
||||
|
||||
|
||||
return video_urls
|
||||
@@ -42,4 +42,4 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
|
||||
def randomize(data):
|
||||
t = string.ascii_letters + string.digits
|
||||
return data + ''.join([random.choice(t) for _ in range(10)])
|
||||
return data + ''.join([random.choice(t) for _ in range(10)])
|
||||
|
||||
Reference in New Issue
Block a user