Shows only keys
This commit is contained in:
parent
b4377513ae
commit
9b64cd4c55
@ -4,7 +4,8 @@ cdm.parse_license(session_id, licence)
|
||||
# get keys
|
||||
keys=""
|
||||
for key in cdm.get_keys(session_id):
|
||||
keys+=f"[{key.type}] {key.kid.hex}:{key.key.hex()}\n"
|
||||
if key.type=="CONTENT":
|
||||
keys+=f"{key.kid.hex}:{key.key.hex()}\n"
|
||||
|
||||
# close session, disposes of session data
|
||||
cdm.close(session_id)
|
||||
|
Loading…
Reference in New Issue
Block a user