Missing Imports

This commit is contained in:
Erevoc 2024-11-15 18:14:46 +02:00
parent 584316fa13
commit 761e879ba7
1 changed files with 3 additions and 4 deletions

View File

@ -1,15 +1,14 @@
from __future__ import annotations from __future__ import annotations
import base64
import re import re
from typing import Optional, Union
import requests import requests
from pyplayready.cdm import Cdm from pyplayready.cdm import Cdm
from pyplayready.bcert import CertificateChain from pyplayready.bcert import CertificateChain
from pyplayready.device import Device
from pyplayready.ecc_key import ECCKey from pyplayready.ecc_key import ECCKey
from pyplayready.pssh import PSSH from pyplayready.key import Key
from pyplayready.exceptions import (DeviceMismatch, InvalidInitData) from pyplayready.exceptions import (DeviceMismatch, InvalidInitData)
@ -145,7 +144,7 @@ class RemoteCdm(Cdm):
} }
).json() ).json()
if r["status"] != 200: if r["status"] != 200:
raise ValueError(f"Could not get {type_} Keys, {r['message']} [{r['status']}]") raise ValueError(f"Could not get Keys, {r['message']} [{r['status']}]")
r = r["data"] r = r["data"]
return [ return [