From 73d4343e394ce36e295408f6be49d9ea705c70c3 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 4 Apr 2021 17:53:26 +0530 Subject: [PATCH] Fix some `m3u8` not obeying `--allow-unplayable-formats` --- yt_dlp/extractor/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = []