diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-04-04 17:53:26 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-04-04 17:53:26 +0530 |
commit | 73d4343e394ce36e295408f6be49d9ea705c70c3 (patch) | |
tree | 64d0d18430008f37030f7e0533309e218936b516 | |
parent | 57d104424f34b0f91febe7a3d4865e8c041cd224 (diff) | |
download | hypervideo-pre-73d4343e394ce36e295408f6be49d9ea705c70c3.tar.lz hypervideo-pre-73d4343e394ce36e295408f6be49d9ea705c70c3.tar.xz hypervideo-pre-73d4343e394ce36e295408f6be49d9ea705c70c3.zip |
Fix some `m3u8` not obeying `--allow-unplayable-formats`
-rw-r--r-- | yt_dlp/extractor/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 0cd217eb3..288ca15d6 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1889,7 +1889,8 @@ class InfoExtractor(object): if '#EXT-X-FAXS-CM:' in m3u8_doc: # Adobe Flash Access return [] - if re.search(r'#EXT-X-SESSION-KEY:.*?URI="skd://', m3u8_doc): # Apple FairPlay + if (not self._downloader.params.get('allow_unplayable_formats') + and re.search(r'#EXT-X-SESSION-KEY:.*?URI="skd://', m3u8_doc)): # Apple FairPlay return [] formats = [] |