[common] skip Apple FairPlay m3u8 manifests(closes #14741)
authorRemita Amine <remitamine@gmail.com>
Tue, 14 Nov 2017 16:41:30 +0000 (17:41 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 14 Nov 2017 16:41:30 +0000 (17:41 +0100)
youtube_dl/extractor/common.py

index e2d9f52b018c25abc5a58a93785473ff88d90b74..a9d68fc0c86970b31799458a46e4b841830f5d02 100644 (file)
@@ -1356,6 +1356,9 @@ 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
+            return []
+
         formats = []
 
         format_url = lambda u: (