From 0f4a68ca622610741b5ba3d4ee3ba15e1947a251 Mon Sep 17 00:00:00 2001 From: Sp5rky Date: Tue, 30 Sep 2025 12:53:27 -0600 Subject: [PATCH] fix: update lxml constraint and pyplayready import path - Update lxml dependency to allow version 6.x (required by subby 0.3.23) - Fix pyplayready exception import path (moved to misc.exceptions in 0.6.3) fixes #17 --- pyproject.toml | 2 +- unshackle/commands/prd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cfa5d0a..d9bd604 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "crccheck>=1.3.0,<2", "jsonpickle>=3.0.4,<4", "langcodes>=3.4.0,<4", - "lxml>=5.2.1,<6", + "lxml>=5.2.1,<7", "pproxy>=2.7.9,<3", "protobuf>=4.25.3,<5", "pycaption>=2.2.6,<3", diff --git a/unshackle/commands/prd.py b/unshackle/commands/prd.py index ad46950..443efec 100644 --- a/unshackle/commands/prd.py +++ b/unshackle/commands/prd.py @@ -8,7 +8,7 @@ from Crypto.Random import get_random_bytes from pyplayready.cdm import Cdm from pyplayready.crypto.ecc_key import ECCKey from pyplayready.device import Device -from pyplayready.exceptions import InvalidCertificateChain, OutdatedDevice +from pyplayready.misc.exceptions import InvalidCertificateChain, OutdatedDevice from pyplayready.system.bcert import Certificate, CertificateChain from pyplayready.system.pssh import PSSH