Minor update
This commit is contained in:
parent
b5f957b957
commit
f08a5822fd
@ -241,7 +241,7 @@ def decrypt_remote_cdm():
|
||||
print(f'{Fore.RED}An error occurred.\n\n{error}\n\nTrying without service certificate')
|
||||
except Exception as error:
|
||||
print(f'{Fore.RED}An error occurred.\n\n{error}\n\nTrying without service certificate')
|
||||
challenge = cdm.get_license_challenge(session_id=session_id, pssh=pssh, privacy_mode=service_cert_set_success)
|
||||
challenge = cdm.get_license_challenge(session_id=session_id, pssh=pssh, privacy_mode=set_service_certificate_success)
|
||||
db_data = challenge
|
||||
if license_curl.data:
|
||||
try:
|
||||
|
@ -13,7 +13,7 @@ def get_pssh(mpd_or_m3u8_url):
|
||||
client.headers.update(License_cURL.headers)
|
||||
if License_cURL.cookies:
|
||||
client.cookies.update(License_cURL.cookies)
|
||||
mpd = dash.DASH.from_url(url=mpd_or_m3u8_url).to_tracks(language="en")
|
||||
mpd = dash.DASH.from_url(url=mpd_or_m3u8_url,session=client).to_tracks(language="en")
|
||||
tracks.add(mpd)
|
||||
PSSH = []
|
||||
for track in tracks:
|
||||
@ -37,7 +37,7 @@ def get_pssh(mpd_or_m3u8_url):
|
||||
License_cURL = Decrypt.load_license_curl()
|
||||
client.headers.update(License_cURL.headers)
|
||||
client.cookies.update(License_cURL.cookies)
|
||||
hls = hls.from_url(url=mpd_or_m3u8_url, session=client).to_tracks()
|
||||
hls = hls.from_url(url=mpd_or_m3u8_url, session=client).to_tracks(language="en")
|
||||
tracks.add(hls)
|
||||
PSSH = []
|
||||
for track in tracks:
|
||||
|
Loading…
Reference in New Issue
Block a user