mirror of
https://github.com/NohamR/OqeeRewind.git
synced 2026-11-25 15:29:46 +00:00
Improve error handling and track selection logic
This commit is contained in:
1 parent
8ce6afaa22
commit
e14fa2f99e
2 files changed
+17
-2
No files matched your search
@@ -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