Shows only keys

This commit is contained in:
FoxRefire 2024-04-25 01:37:29 +09:00
parent b4377513ae
commit 9b64cd4c55

View File

@ -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)