1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-27 19:55:26 +02:00

[extractor] Fix DRM detection in m3u8

Fixes https://github.com/ytdl-org/youtube-dl/issues/31693#issuecomment-1445202857
This commit is contained in:
pukkandan 2023-02-26 10:16:30 +05:30
parent cc09083636
commit 43a3eaf963
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View 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: