mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-03-18 09:07:30 +00:00
fix: upgrade pyplayready to 0.6.3 and resolve import compatibility issues
- Upgrade pyplayready from >=0.6.0 to >=0.6.3 - Upgrade subby to 0.3.23 (commit 5a925c36) for lxml 6.x compatibility - Upgrade lxml from 5.4.0 to 6.0.2 - Fix pyplayready exception imports to use root-level imports (compatible with both 0.6.0 and 0.6.3) - Suppress SyntaxWarning from unmaintained tinycss dependency The pyplayready package changed its API between versions: - v0.6.0: exceptions in pyplayready.exceptions module - v0.6.3: exceptions in pyplayready.misc.exceptions module Using root-level imports (from pyplayready import ...) works with both versions. ref #20
This commit is contained in:
@@ -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.misc.exceptions import InvalidCertificateChain, OutdatedDevice
|
||||
from pyplayready import InvalidCertificateChain, OutdatedDevice
|
||||
from pyplayready.system.bcert import Certificate, CertificateChain
|
||||
from pyplayready.system.pssh import PSSH
|
||||
|
||||
|
||||
Reference in New Issue
Block a user