mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 14:14:54 +01:00
[downloader/f4m] Clarify that we should eventually just implement the DRM scheme (#3000)
This commit is contained in:
parent
c7ff0c6422
commit
d543bdc351
|
@ -238,13 +238,13 @@ def _get_unencrypted_media(self, doc):
|
||||||
doc.findall(_add_ns('drmAdditionalHeaderSet'))):
|
doc.findall(_add_ns('drmAdditionalHeaderSet'))):
|
||||||
# If id attribute is missing it's valid for all media nodes
|
# If id attribute is missing it's valid for all media nodes
|
||||||
# without drmAdditionalHeaderId or drmAdditionalHeaderSetId attribute
|
# without drmAdditionalHeaderId or drmAdditionalHeaderSetId attribute
|
||||||
if not 'id' in e.attrib:
|
if 'id' not in e.attrib:
|
||||||
self.report_error('Media is DRM protected')
|
self.report_error('Missing ID in f4m DRM')
|
||||||
media = list(filter(lambda e: 'drmAdditionalHeaderId' not in e.attrib and
|
media = list(filter(lambda e: 'drmAdditionalHeaderId' not in e.attrib and
|
||||||
'drmAdditionalHeaderSetId' not in e.attrib,
|
'drmAdditionalHeaderSetId' not in e.attrib,
|
||||||
media))
|
media))
|
||||||
if not media:
|
if not media:
|
||||||
self.report_error('Media is DRM protected')
|
self.report_error('Unsupported DRM')
|
||||||
return media
|
return media
|
||||||
|
|
||||||
def real_download(self, filename, info_dict):
|
def real_download(self, filename, info_dict):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user