mirror of
https://github.com/devine-dl/pywidevine.git
synced 2024-10-30 05:29:21 +00:00
serve: Use Cdm.get_keys() instead of accessing _sessions
This commit is contained in:
parent
c73078b7a9
commit
93d9561fac
@ -294,8 +294,7 @@ async def parse_license(request: web.Request) -> web.Response:
|
||||
"type": key.type,
|
||||
"permissions": key.permissions,
|
||||
}
|
||||
for key in cdm._sessions[session_id].keys
|
||||
if not key_type or key.type == key_type
|
||||
for key in cdm.get_keys(session_id, key_type)
|
||||
]
|
||||
|
||||
return web.json_response({
|
||||
|
Loading…
Reference in New Issue
Block a user