fix doodstream

This commit is contained in:
Timmy89
2024-01-31 19:42:25 +01:00
committed by GitHub
parent 4519aff817
commit 915b9e3e7b

View File

@@ -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)])