Fix some m3u8 not obeying --allow-unplayable-formats

This commit is contained in:
pukkandan 2021-04-04 17:53:26 +05:30
parent 57d104424f
commit 73d4343e39
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -1889,7 +1889,8 @@ def _parse_m3u8_formats(self, m3u8_doc, m3u8_url, ext=None,
if '#EXT-X-FAXS-CM:' in m3u8_doc: # Adobe Flash Access if '#EXT-X-FAXS-CM:' in m3u8_doc: # Adobe Flash Access
return [] 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 [] return []
formats = [] formats = []