Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse and Session ID does not exist #85

Open
eroffa opened this issue Apr 2, 2023 · 3 comments
Open

Unable to parse and Session ID does not exist #85

eroffa opened this issue Apr 2, 2023 · 3 comments

Comments

@eroffa
Copy link

eroffa commented Apr 2, 2023

Help me please. What is the reason for the error?

Input MPD URL: my url enter
License URL: my url enter

PSSH obtained.
my PSSH enter

unable to parse, unsupported init data format
unable to parse init data
session ID does not exist
Traceback (most recent call last):
  File "/home/user/Music/widevine_keys/l3.py", line 130, in <module>
    correct, keys = WV_Function(pssh, lic_url)
  File "/home/user/Music/widevine_keys/l3.py", line 41, in WV_Function
    request = b64encode(raw_request)
  File "/usr/lib/python3.10/base64.py", line 58, in b64encode
    encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'int'
@medvm
Copy link
Owner

medvm commented Apr 2, 2023

probably the server replied with some int error code
print(response) before base64 encoding it, also you can set a breakpoint and check variables state in the main scope.

@hamishegg
Copy link

Traceback (most recent call last):
File "C:\Users\slipp\Downloads\widevine_keys-main\widevine_keys-main\l3.py", line 130, in
correct, keys = WV_Function(pssh, lic_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\slipp\Downloads\widevine_keys-main\widevine_keys-main\l3.py", line 39, in WV_Function
wvdecrypt = WvDecrypt(init_data_b64=pssh, cert_data_b64=cert_b64, device=deviceconfig.device_android_generic)

same errors

@blueveno
Copy link

same errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants