aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-07-30 17:34:38 +0100
committerremitamine <remitamine@gmail.com>2016-04-25 13:37:03 +0100
commitfb72ec58ae2612590d661c9943fe6b2fa0864401 (patch)
treec943c6b6ecd55fb336bb9b85ca74219918cda6de /youtube_dl/extractor
parent799207e838e0404aaa5cb6658e41bef108aced16 (diff)
downloadyoutube-dl-fb72ec58ae2612590d661c9943fe6b2fa0864401.tar.xz
[extractor/common] do not process f4m manifest that contain akamai playerVerificationChallenge
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index dc5080504..e3d1dd076 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -856,6 +856,13 @@ class InfoExtractor(object):
# (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244)
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 = []
manifest_version = '1.0'
media_nodes = manifest.findall('{http://ns.adobe.com/f4m/1.0}media')