From 372eb5ccf1e8c34bc769a564dd856f79d993b0a3 Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Thu, 17 Sep 2026 11:27:27 -0600 Subject: [PATCH] fix(drm): log missing Widevine/PlayReady PSSH at debug level --- unshackle/core/manifests/dash.py | 4 ++-- unshackle/core/tracks/track.py | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/unshackle/core/manifests/dash.py b/unshackle/core/manifests/dash.py index f0c3d5f1..6db1fbcf 100644 --- a/unshackle/core/manifests/dash.py +++ b/unshackle/core/manifests/dash.py @@ -427,7 +427,7 @@ class DASH: try: track.drm = [Widevine.from_init_data(init_data)] except Widevine.Exceptions.PSSHNotFound: - log.warning("No PlayReady or Widevine PSSH was found for this track, is it DRM free?") + log.debug("No PlayReady or Widevine PSSH was found for this track, is it DRM free?") else: try: track.drm = [Widevine.from_init_data(init_data)] @@ -435,7 +435,7 @@ class DASH: try: track.drm = [PlayReady.from_init_data(init_data)] except PlayReady.Exceptions.PSSHNotFound: - log.warning("No Widevine or PlayReady PSSH was found for this track, is it DRM free?") + log.debug("No Widevine or PlayReady PSSH was found for this track, is it DRM free?") if track.drm: track_kid = track_kid or track.get_key_id(url=segments[0][0], session=session) diff --git a/unshackle/core/tracks/track.py b/unshackle/core/tracks/track.py index 28ceeb4c..6aff7909 100644 --- a/unshackle/core/tracks/track.py +++ b/unshackle/core/tracks/track.py @@ -673,9 +673,7 @@ class Track: try: self.drm = [Widevine.from_track(self, session)] except Widevine.Exceptions.PSSHNotFound: - log.warning( - "No PlayReady or Widevine PSSH was found for this track, is it DRM free?" - ) + log.debug("No PlayReady or Widevine PSSH was found for this track, is it DRM free?") else: try: self.drm = [Widevine.from_track(self, session)] @@ -683,9 +681,7 @@ class Track: try: self.drm = [PlayReady.from_track(self, session)] except PlayReady.Exceptions.PSSHNotFound: - log.warning( - "No Widevine or PlayReady PSSH was found for this track, is it DRM free?" - ) + log.debug("No Widevine or PlayReady PSSH was found for this track, is it DRM free?") if self.drm: track_kid = self.get_key_id(session=session)