fix(drm): log missing Widevine/PlayReady PSSH at debug level

This commit is contained in:
imSp4rky
2026-09-17 11:27:27 -06:00
parent dfaeb83076
commit 372eb5ccf1
2 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -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)
+2 -6
View File
@@ -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)