medvm / widevine_keys

This repo created for bypassing Widevine L3 DRM and obtaining keys.
450 stars 186 forks source link

UnboundLocalError: cannot access local variable 'license_b64' where it is not associated with a value #89

Open pokemaster974 opened 1 year ago

pokemaster974 commented 1 year ago

I tried to make this script working for canalplus.com website. Adding my own CDM Adding headers request into the headers.py

Successed to have a license_content.bin file. If I waiting too long, I got an status 403 instead of status 200. image

But got an issue in the end of the script :

Traceback (most recent call last):
  File "C:\Users\Sebastien\Desktop\widevine_keys-main\l3.py", line 92, in <module>
    correct, keys = WV_Function(pssh, lic_url)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Sebastien\Desktop\widevine_keys-main\l3.py", line 87, in WV_Function
    wvdecrypt.update_license(license_b64)
                             ^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'license_b64' where it is not associated with a value

Do you have an idea if it's possible to make it working ?

Regards.