mirror of
https://github.com/devine-dl/pywidevine.git
synced 2024-12-23 11:27:51 +00:00
Cdm: Remove the use of .format() in decrypt()
This commit is contained in:
parent
657f9357f2
commit
943968f2c7
@ -265,15 +265,15 @@ class Cdm:
|
||||
"--enable_raw_key_decryption", "--keys",
|
||||
",".join([
|
||||
*[
|
||||
"label={}:key_id={}:key={}".format(i, kid.hex, key.lower())
|
||||
f"label={i}:key_id={kid.hex}:key={key.lower()}"
|
||||
for i, (kid, key) in enumerate(content_keys.items())
|
||||
],
|
||||
*[
|
||||
# Apple TV+ needs this as their files do not use the KID supplied in the manifest
|
||||
"label={}:key_id={}:key={}".format(i, "00" * 16, key.lower())
|
||||
f"label={i}:key_id=00000000000000000000000000000000:key={key.lower()}"
|
||||
for i, (kid, key) in enumerate(content_keys.items(), len(content_keys))
|
||||
]
|
||||
]),
|
||||
])
|
||||
]
|
||||
|
||||
if temp:
|
||||
|
Loading…
Reference in New Issue
Block a user