mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-28 01:41:06 +00:00
[youtube] Simplify code for getting the dash manifest url
video_info contains now the 'ytplayer.config.args' dictionary
This commit is contained in:
parent
4e62ebe250
commit
7160532d41
1 changed files with 1 additions and 4 deletions
|
@ -933,10 +933,7 @@ def _map_to_format_list(urlmap):
|
|||
# However, in the case of an age restriction there won't be any embedded dashmpd in the video_webpage.
|
||||
# Luckily, it seems, this case uses some kind of default signature (len == 86), so the
|
||||
# combination of get_video_info and the _static_decrypt_signature() decryption fallback will work here.
|
||||
if age_gate:
|
||||
dash_manifest_url = video_info.get('dashmpd')[0]
|
||||
else:
|
||||
dash_manifest_url = ytplayer_config['args']['dashmpd']
|
||||
dash_manifest_url = video_info.get('dashmpd')[0]
|
||||
|
||||
def decrypt_sig(mobj):
|
||||
s = mobj.group(1)
|
||||
|
|
Loading…
Reference in a new issue