]> jfr.im git - yt-dlp.git/commitdiff
[extractor] Fix DRM detection in m3u8
authorpukkandan <redacted>
Sun, 26 Feb 2023 04:46:30 +0000 (10:16 +0530)
committerpukkandan <redacted>
Sun, 26 Feb 2023 04:57:46 +0000 (10:27 +0530)
Fixes https://github.com/ytdl-org/youtube-dl/issues/31693#issuecomment-1445202857

yt_dlp/extractor/common.py

index ebacc87bc00473136ef0ac4ca1432f12094af54c..86bef173f5b002af87892e13a432f3636f7f9d92 100644 (file)
@@ -2063,6 +2063,7 @@ def extract_media(x_media_line):
                     'protocol': entry_protocol,
                     'preference': preference,
                     'quality': quality,
+                    'has_drm': has_drm,
                     'vcodec': 'none' if media_type == 'AUDIO' else None,
                 } for idx in _extract_m3u8_playlist_indices(manifest_url))
 
@@ -2122,6 +2123,7 @@ def build_stream_name():
                         'protocol': entry_protocol,
                         'preference': preference,
                         'quality': quality,
+                        'has_drm': has_drm,
                     }
                     resolution = last_stream_inf.get('RESOLUTION')
                     if resolution: