aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-04 17:53:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-04 17:53:26 +0530
commit73d4343e394ce36e295408f6be49d9ea705c70c3 (patch)
tree64d0d18430008f37030f7e0533309e218936b516 /yt_dlp/extractor/common.py
parent57d104424f34b0f91febe7a3d4865e8c041cd224 (diff)
downloadhypervideo-pre-73d4343e394ce36e295408f6be49d9ea705c70c3.tar.lz
hypervideo-pre-73d4343e394ce36e295408f6be49d9ea705c70c3.tar.xz
hypervideo-pre-73d4343e394ce36e295408f6be49d9ea705c70c3.zip
Fix some `m3u8` not obeying `--allow-unplayable-formats`
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py3
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 = []