mirror of
https://github.com/devine-dl/pywidevine.git
synced 2024-10-30 05:29:21 +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",
|
"--enable_raw_key_decryption", "--keys",
|
||||||
",".join([
|
",".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())
|
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
|
# 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))
|
for i, (kid, key) in enumerate(content_keys.items(), len(content_keys))
|
||||||
]
|
]
|
||||||
]),
|
])
|
||||||
]
|
]
|
||||||
|
|
||||||
if temp:
|
if temp:
|
||||||
|
Loading…
Reference in New Issue
Block a user