diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-11 15:21:37 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-11 17:09:21 +0530 |
commit | ba107574128aa2bf9769819658931053449fecf9 (patch) | |
tree | 9290b627d9bcbccb2f513693678fcb05aa217f06 | |
parent | e6faf2be366fcebb6147739363ebd1f690b961bf (diff) | |
download | hypervideo-pre-ba107574128aa2bf9769819658931053449fecf9.tar.lz hypervideo-pre-ba107574128aa2bf9769819658931053449fecf9.tar.xz hypervideo-pre-ba107574128aa2bf9769819658931053449fecf9.zip |
[extractor] Detect `EXT-X-KEY` Apple FairPlay
-rw-r--r-- | yt_dlp/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 65444d3bf..af0f01f37 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -2012,7 +2012,7 @@ class InfoExtractor(object): if '#EXT-X-FAXS-CM:' in m3u8_doc: # Adobe Flash Access return formats, subtitles - has_drm = re.search(r'#EXT-X-SESSION-KEY:.*?URI="skd://', m3u8_doc) + has_drm = re.search(r'#EXT-X-(?:SESSION-)?KEY:.*?URI="skd://', m3u8_doc) def format_url(url): return url if re.match(r'^https?://', url) else compat_urlparse.urljoin(m3u8_url, url) |