mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[extractor/common] do not process f4m manifest that contain akamai playerVerificationChallenge
This commit is contained in:
parent
799207e838
commit
fb72ec58ae
@ -856,6 +856,13 @@ def _extract_f4m_formats(self, manifest_url, video_id, preference=None, f4m_id=N
|
|||||||
# (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244)
|
# (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244)
|
||||||
transform_source=transform_source)
|
transform_source=transform_source)
|
||||||
|
|
||||||
|
# currently youtube-dl cannot decode the playerVerificationChallenge as Akamai uses Adobe Alchemy
|
||||||
|
akamai_pv = manifest.find('{http://ns.adobe.com/f4m/1.0}pv-2.0')
|
||||||
|
if akamai_pv is not None and ';' in akamai_pv.text:
|
||||||
|
playerVerificationChallenge = akamai_pv.text.split(';')[0]
|
||||||
|
if playerVerificationChallenge.strip() != '':
|
||||||
|
return []
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
manifest_version = '1.0'
|
manifest_version = '1.0'
|
||||||
media_nodes = manifest.findall('{http://ns.adobe.com/f4m/1.0}media')
|
media_nodes = manifest.findall('{http://ns.adobe.com/f4m/1.0}media')
|
||||||
|
Loading…
Reference in New Issue
Block a user