Skip to content

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

@pokemaster974

Description

@pokemaster974

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions