mirror of
https://github.com/NohamR/OqeeRewind.git
synced 2026-01-11 00:28:16 +00:00
Improve error handling and track selection logic
This commit is contained in:
@@ -19,6 +19,7 @@ def fetch_drm_keys(kid: str, api_url: str, api_key: str) -> str:
|
||||
}
|
||||
data = {"service": "oqee", "kid": kid}
|
||||
response = requests.post(api_url, headers=headers, json=data, timeout=10)
|
||||
response.raise_for_status()
|
||||
return response.json()["key"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user