diff --git a/CDRM_Modules/Decrypt.py b/CDRM_Modules/Decrypt.py index 8a161ae..638269c 100644 --- a/CDRM_Modules/Decrypt.py +++ b/CDRM_Modules/Decrypt.py @@ -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: diff --git a/CDRM_Modules/Get_PSSH.py b/CDRM_Modules/Get_PSSH.py index 36f27c7..da6b086 100644 --- a/CDRM_Modules/Get_PSSH.py +++ b/CDRM_Modules/Get_PSSH.py @@ -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: