feat(drm): bridge a FairPlay-only HLS track only for a service with get_fairplay_bridge_license

This commit is contained in:
imSp4rky
2026-12-01 21:07:26 -07:00
parent e36236d5cc
commit 2097d31a0a
38 changed files with 607 additions and 77 deletions
@@ -36,6 +36,7 @@ from unshackle.core.remote_protocol import CHANNEL_ROUTE, LOGS_ROUTE, PROMPT_ROU
from unshackle.core.remote_service import RemoteError, RemoteService
from unshackle.core.service import Service
from unshackle.core.session import RnetSession, record_requests
from unshackle.core.title_source import TitleSource
from unshackle.core.titles.movie import Movie, Movies
from unshackle.core.tracks import Audio, Chapters, Tracks
from unshackle.core.tracks.track import Track
@@ -102,6 +103,8 @@ class StubService:
def decrypts_samples(self, track: Any) -> bool:
return False
fairplay_bridge = TitleSource.fairplay_bridge
@pytest.fixture
def server(request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch, tmp_path: Any) -> Iterator[SimpleNamespace]: