Add debug logging to DRM key fetch process

This commit is contained in:
√(noham)²
2026-01-21 22:11:34 +01:00
parent 83bf27b097
commit 4ec51a10ea

View File

@@ -18,7 +18,9 @@ def fetch_drm_keys(kid: str, api_url: str, api_key: str) -> str:
"Api-Key": api_key, "Api-Key": api_key,
} }
data = {"service": "oqee", "kid": kid} data = {"service": "oqee", "kid": kid}
logger.debug("Fetching DRM key for KID: %s", kid)
response = requests.post(api_url, headers=headers, json=data, timeout=10) response = requests.post(api_url, headers=headers, json=data, timeout=10)
logger.debug("DRM key fetch response: %s", response.text)
response.raise_for_status() response.raise_for_status()
return response.json()["key"] return response.json()["key"]