A feature-rich command-line audio/video downloader
Merge branch 'akamai_pv' of https://github.com/remitamine/youtube-dl into remitamine-akamai_pv
Yen Chi Hsuand6712378e739
diff --cc youtube_dl/extractor/common.pyindex 02cd2c003c,e3d1dd0763..a285ee7d89--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@@ -993,19 -854,15 +993,26 @@@ class InfoExtractor(object)'Unable to download f4m manifest',# Some manifests may be malformed, e.g. prosiebensat1 generated manifests# (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244)- transform_source=transform_source)+ transform_source=transform_source,+ fatal=fatal)++ if manifest is False:+ return []+ return self._parse_f4m_formats(+ manifest, manifest_url, video_id, preference=preference, f4m_id=f4m_id,+ transform_source=transform_source, fatal=fatal)++ def _parse_f4m_formats(self, manifest, manifest_url, video_id, preference=None, f4m_id=None,+ transform_source=lambda s: fix_xml_ampersands(s).strip(),+ fatal=True):+ # 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')