mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-06 00:49:20 +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:
@@ -2063,6 +2063,7 @@ class InfoExtractor:
|
|||||||
'protocol': entry_protocol,
|
'protocol': entry_protocol,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
|
'has_drm': has_drm,
|
||||||
'vcodec': 'none' if media_type == 'AUDIO' else None,
|
'vcodec': 'none' if media_type == 'AUDIO' else None,
|
||||||
} for idx in _extract_m3u8_playlist_indices(manifest_url))
|
} for idx in _extract_m3u8_playlist_indices(manifest_url))
|
||||||
|
|
||||||
@@ -2122,6 +2123,7 @@ class InfoExtractor:
|
|||||||
'protocol': entry_protocol,
|
'protocol': entry_protocol,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
|
'has_drm': has_drm,
|
||||||
}
|
}
|
||||||
resolution = last_stream_inf.get('RESOLUTION')
|
resolution = last_stream_inf.get('RESOLUTION')
|
||||||
if resolution:
|
if resolution:
|
||||||
|
Reference in New Issue
Block a user