]> jfr.im git - yt-dlp.git/commitdiff
[extractor/stv] Detect DRM
authorpukkandan <redacted>
Fri, 30 Dec 2022 04:42:13 +0000 (10:12 +0530)
committerpukkandan <redacted>
Fri, 30 Dec 2022 05:47:10 +0000 (11:17 +0530)
Closes #5320

yt_dlp/extractor/stv.py

index c879fb52eb753c86013012286911f505314c92c4..8b3e63538c85c22dead18bc6c0ec5d5a72efbd52 100644 (file)
@@ -73,6 +73,8 @@ def _real_extract(self, url):
             })
 
         programme = result.get('programme') or {}
+        if programme.get('drmEnabled'):
+            self.report_drm(video_id)
 
         return {
             '_type': 'url_transparent',