aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-02-26 10:16:30 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-02-26 10:27:46 +0530
commit43a3eaf96393b712d60cbcf5c6cb1e90ed7f42f5 (patch)
tree966341dd6230f4f0afadf8de3b55ff66bbc9c9a9 /yt_dlp/extractor/common.py
parentcc09083636ce21e58ff74f45eac2dbda507462b0 (diff)
downloadhypervideo-pre-43a3eaf96393b712d60cbcf5c6cb1e90ed7f42f5.tar.lz
hypervideo-pre-43a3eaf96393b712d60cbcf5c6cb1e90ed7f42f5.tar.xz
hypervideo-pre-43a3eaf96393b712d60cbcf5c6cb1e90ed7f42f5.zip
[extractor] Fix DRM detection in m3u8
Fixes https://github.com/ytdl-org/youtube-dl/issues/31693#issuecomment-1445202857
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index ebacc87bc..86bef173f 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -2063,6 +2063,7 @@ class InfoExtractor:
'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 @@ class InfoExtractor:
'protocol': entry_protocol,
'preference': preference,
'quality': quality,
+ 'has_drm': has_drm,
}
resolution = last_stream_inf.get('RESOLUTION')
if resolution: