medvm / widevine_keys

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

AttributeError: module 'headers' has no attribute 'token' #90

Closed pcuserpro-lt closed 1 year ago

pcuserpro-lt commented 1 year ago

I've got this after manually entering the PSSH (I don't need other site support, I think). Here's how it appeared:

image Here's the whole output off the PowerShell, if you need: NOTE: MPD and license URLs, PSSH has been replaced with hidden , I pasted the correct ones

PS C:\Users\USER\OneDrive\Desktop\widevine_keys-main>  & 'C:\Users\USER\AppData\Local\Microsoft\WindowsApps\python.exe' 'c:\Program Files\VS Code Extensions\ms-python.python-2021.9.1200949236\pythonFiles\lib\python\debugpy\launcher' '51391' '--' 'c:\Users\USER\OneDrive\Desktop\widevine_keys-main\l3.py' 

Input MPD URL: _hidden_
License URL: _hidden_
Unable to find PSSH in mpd. Edit getPSSH.py or enter PSSH manually: _hidden_

PSSH obtained.
_hidden_
Traceback (most recent call last):
  File "c:\Users\USER\OneDrive\Desktop\widevine_keys-main\l3.py", line 130, in <module>
    correct, keys = WV_Function(pssh, lic_url)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\USER\OneDrive\Desktop\widevine_keys-main\l3.py", line 52, in WV_Function
    data=f'token={headers.token}&provider={headers.provider}&payload={str(request, "utf-8" )}'
                  ^^^^^^^^^^^^^
AttributeError: module 'headers' has no attribute 'token'