forked from kenzuya/unshackle
feat(hls): license a FairPlay-only SAMPLE-AES playlist through a PlayReady or Widevine CDM
This commit is contained in:
@@ -109,7 +109,7 @@ def ensure_track_drm(track: Any, session: Any = None, init_data: bytes | None =
|
||||
|
||||
if (track.data.get("hls") or getattr(track, "descriptor", None) is Track.Descriptor.HLS) and track.url:
|
||||
try:
|
||||
if track.load_drm_from_playlist(session):
|
||||
if track.load_drm_from_playlist(session, bridge=True):
|
||||
return
|
||||
except Exception as e:
|
||||
log.debug(f"HLS DRM prefetch failed for {track.id}: {e!r}")
|
||||
|
||||
Reference in New Issue
Block a user