From 761e879ba7316f6da0299faa159caaae82b1f2a4 Mon Sep 17 00:00:00 2001 From: Erevoc <188392309+Erevoc@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:14:46 +0200 Subject: [PATCH] Missing Imports --- pyplayready/remotecdm.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyplayready/remotecdm.py b/pyplayready/remotecdm.py index 251a3ee..2d778ff 100644 --- a/pyplayready/remotecdm.py +++ b/pyplayready/remotecdm.py @@ -1,15 +1,14 @@ from __future__ import annotations -import base64 import re -from typing import Optional, Union import requests from pyplayready.cdm import Cdm from pyplayready.bcert import CertificateChain +from pyplayready.device import Device from pyplayready.ecc_key import ECCKey -from pyplayready.pssh import PSSH +from pyplayready.key import Key from pyplayready.exceptions import (DeviceMismatch, InvalidInitData) @@ -145,7 +144,7 @@ class RemoteCdm(Cdm): } ).json() 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"] return [