Skip to content

Commit

Permalink
Set stop event & mark track failed if HLS Session DRM fails to license
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed May 19, 2023
1 parent c9ecab4 commit e3ae58a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion devine/core/manifests/hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@ def download_track(
# license and grab content keys
if not license_widevine:
raise ValueError("license_widevine func must be supplied to use Widevine DRM")
license_widevine(session_drm)
try:
license_widevine(session_drm)
except Exception: # noqa
stop_event.set() # skip pending track downloads
progress(downloaded="[red]FAILED")
raise
else:
session_drm = None

Expand Down

0 comments on commit e3ae58a

Please sign in to comment.