mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-17 06:25:07 +00:00
fix(drm): log missing Widevine/PlayReady PSSH at debug level
This commit is contained in:
@@ -427,7 +427,7 @@ class DASH:
|
|||||||
try:
|
try:
|
||||||
track.drm = [Widevine.from_init_data(init_data)]
|
track.drm = [Widevine.from_init_data(init_data)]
|
||||||
except Widevine.Exceptions.PSSHNotFound:
|
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:
|
else:
|
||||||
try:
|
try:
|
||||||
track.drm = [Widevine.from_init_data(init_data)]
|
track.drm = [Widevine.from_init_data(init_data)]
|
||||||
@@ -435,7 +435,7 @@ class DASH:
|
|||||||
try:
|
try:
|
||||||
track.drm = [PlayReady.from_init_data(init_data)]
|
track.drm = [PlayReady.from_init_data(init_data)]
|
||||||
except PlayReady.Exceptions.PSSHNotFound:
|
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:
|
if track.drm:
|
||||||
track_kid = track_kid or track.get_key_id(url=segments[0][0], session=session)
|
track_kid = track_kid or track.get_key_id(url=segments[0][0], session=session)
|
||||||
|
|||||||
@@ -673,9 +673,7 @@ class Track:
|
|||||||
try:
|
try:
|
||||||
self.drm = [Widevine.from_track(self, session)]
|
self.drm = [Widevine.from_track(self, session)]
|
||||||
except Widevine.Exceptions.PSSHNotFound:
|
except Widevine.Exceptions.PSSHNotFound:
|
||||||
log.warning(
|
log.debug("No PlayReady or Widevine PSSH was found for this track, is it DRM free?")
|
||||||
"No PlayReady or Widevine PSSH was found for this track, is it DRM free?"
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
self.drm = [Widevine.from_track(self, session)]
|
self.drm = [Widevine.from_track(self, session)]
|
||||||
@@ -683,9 +681,7 @@ class Track:
|
|||||||
try:
|
try:
|
||||||
self.drm = [PlayReady.from_track(self, session)]
|
self.drm = [PlayReady.from_track(self, session)]
|
||||||
except PlayReady.Exceptions.PSSHNotFound:
|
except PlayReady.Exceptions.PSSHNotFound:
|
||||||
log.warning(
|
log.debug("No Widevine or PlayReady PSSH was found for this track, is it DRM free?")
|
||||||
"No Widevine or PlayReady PSSH was found for this track, is it DRM free?"
|
|
||||||
)
|
|
||||||
|
|
||||||
if self.drm:
|
if self.drm:
|
||||||
track_kid = self.get_key_id(session=session)
|
track_kid = self.get_key_id(session=session)
|
||||||
|
|||||||
Reference in New Issue
Block a user