feat(drm): add the whole-file aes-ctr cipher and paged aac rewrite

This commit is contained in:
imSp4rky
2026-11-27 01:11:13 -07:00
parent 8cf915fd71
commit 736f1cc731
22 changed files with 1269 additions and 45 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ from typing import Any, BinaryIO
from uuid import UUID
from unshackle.core.constants import DOWNLOAD_CANCELLED, AnyTrack
from unshackle.core.drm import DRM_T, ClearKeyCENC, MonaLisa, PlayReady, Widevine
from unshackle.core.drm import DRM_T, ClearKeyCENC, ClearKeyCTR, MonaLisa, PlayReady, Widevine
from unshackle.core.drm.segment_decrypt import SegmentDecrypter
from unshackle.core.drm.verify import decrypt_track
from unshackle.core.events import events
@@ -96,7 +96,7 @@ def licensing(ctx: DownloadContext) -> Iterator[None]:
LICENSABLE: dict[Track.Descriptor, tuple[type, ...]] = {
Track.Descriptor.URL: (Widevine, PlayReady, ClearKeyCENC),
Track.Descriptor.URL: (Widevine, PlayReady, ClearKeyCENC, ClearKeyCTR),
Track.Descriptor.DASH: (Widevine, PlayReady, ClearKeyCENC),
Track.Descriptor.HLS: (Widevine, PlayReady, MonaLisa),
Track.Descriptor.ISM: (Widevine, PlayReady),