mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 20:45:11 +00:00
refactor(drm): build PlayReady from base64 with PlayReady.from_pssh_b64 in server keys and the wire rebuild
This commit is contained in:
@@ -7,7 +7,6 @@ from types import SimpleNamespace
|
||||
from uuid import UUID
|
||||
|
||||
import click
|
||||
import pyplayready.system.pssh as pr_pssh_mod
|
||||
import pytest
|
||||
import pywidevine.pssh as wv_pssh_mod
|
||||
|
||||
@@ -287,7 +286,10 @@ def playready_env(monkeypatch):
|
||||
def __init__(self, **kwargs):
|
||||
self.kids = []
|
||||
|
||||
monkeypatch.setattr(pr_pssh_mod, "PSSH", lambda data: data)
|
||||
@classmethod
|
||||
def from_pssh_b64(cls, pssh_b64, kid=None):
|
||||
return cls()
|
||||
|
||||
monkeypatch.setattr(drm_mod, "PlayReady", _FakePlayReady)
|
||||
monkeypatch.setattr(handlers, "ensure_track_drm", lambda track, session=None, init_data=None: None)
|
||||
monkeypatch.setattr(server_keys, "ensure_track_drm", lambda track, session=None, init_data=None: None)
|
||||
|
||||
Reference in New Issue
Block a user