mirror of
https://git.gay/ready-dl/pyplayready.git
synced 2025-07-21 07:06:45 +00:00
+ Option to downgrade WRMHEADERs to v4.0.0.0
+ Removed CRC32 checksum + Several small fixed
This commit is contained in:
parent
042f8c2204
commit
70e47800df
8 changed files with 225 additions and 21 deletions
|
@ -24,6 +24,7 @@ pyplayready test DEVICE.prd
|
|||
|
||||
## Usage
|
||||
An example code snippet:
|
||||
|
||||
```python
|
||||
from pyplayready.cdm import Cdm
|
||||
from pyplayready.device import Device
|
||||
|
@ -48,7 +49,9 @@ pssh = PSSH(
|
|||
"AFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA=="
|
||||
)
|
||||
|
||||
request = cdm.get_license_challenge(pssh.wrm_headers[0])
|
||||
# set to `True` if your device doesn't support scalable licenses (this projects also doesn't yet) to downgrade the WRMHEADERs to v4.0.0.0
|
||||
wrm_headers = pssh.get_wrm_headers(downgrade_to_v4=False)
|
||||
request = cdm.get_license_challenge(wrm_headers[0])
|
||||
|
||||
response = requests.post(
|
||||
url="https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:2000)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue