mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-18 03:02:21 -05:00
Merge branch 'remitamine-akamai_pv'
This commit is contained in:
commit
b248e6485b
1 changed files with 7 additions and 0 deletions
|
@ -1006,6 +1006,13 @@ def _extract_f4m_formats(self, manifest_url, video_id, preference=None, f4m_id=N
|
||||||
def _parse_f4m_formats(self, manifest, manifest_url, video_id, preference=None, f4m_id=None,
|
def _parse_f4m_formats(self, manifest, manifest_url, video_id, preference=None, f4m_id=None,
|
||||||
transform_source=lambda s: fix_xml_ampersands(s).strip(),
|
transform_source=lambda s: fix_xml_ampersands(s).strip(),
|
||||||
fatal=True):
|
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 = []
|
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 a new issue