widevine_keys icon indicating copy to clipboard operation
widevine_keys copied to clipboard

Unable to parse and Session ID does not exist

Open eroffa opened this issue 1 year ago • 3 comments

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'

eroffa avatar Apr 02 '23 04:04 eroffa

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.

medvm avatar Apr 02 '23 09:04 medvm

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

hamishegg avatar Jul 28 '23 05:07 hamishegg

same errors

blueveno avatar Sep 12 '23 18:09 blueveno