parent
7c94fd23d7
commit
4b77d6180e
|
@ -0,0 +1,17 @@
|
|||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0',
|
||||
'Accept': '*/*',
|
||||
'Accept-Language': 'en-US,en;q=0.5',
|
||||
# 'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'Referer': 'https://therokuchannel.roku.com/',
|
||||
'Origin': 'https://therokuchannel.roku.com',
|
||||
'DNT': '1',
|
||||
'Sec-Fetch-Dest': 'empty',
|
||||
'Sec-Fetch-Mode': 'cors',
|
||||
'Sec-Fetch-Site': 'same-site',
|
||||
'Sec-GPC': '1',
|
||||
'Connection': 'keep-alive',
|
||||
# Requests doesn't support trailers
|
||||
# 'TE': 'trailers',
|
||||
}
|
|
@ -91,7 +91,7 @@ for binary in required_binaries:
|
|||
shutil.rmtree(f"{main_directory}\\temp\\Bento4-SDK-1-6-0-639.x86_64-microsoft-win32")
|
||||
print()
|
||||
elif binary == "n_m3u8dl-re.exe":
|
||||
n_m3u8dl_re_download = requests.get("https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.1.6-beta/N_m3u8DL-RE_Beta_win-x64_20230412.zip", stream=True)
|
||||
n_m3u8dl_re_download = requests.get("https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_win-x64_20230628.zip", stream=True)
|
||||
total_size = int(n_m3u8dl_re_download.headers.get('content-length', 0))
|
||||
with open(f"{save_path}\\n_m3u8dl-re.zip", 'wb') as download:
|
||||
with tqdm(total=total_size, unit='B', unit_scale=True, desc="Downloading n_m3u8dl-re.zip") as progress_bar:
|
||||
|
@ -283,7 +283,7 @@ async def retrieve_keys_remotely_vdocipher(mpd: str = None):
|
|||
token_response = requests.get(mpd, headers=token_headers)
|
||||
|
||||
# Set API URL
|
||||
api_url = "https://api.cdrm-project.com"
|
||||
api_url = "https://api.cdm-project.com"
|
||||
|
||||
# Set API Device
|
||||
api_device = "CDM"
|
||||
|
|
Reference in New Issue