Skip to content

Commit 87dc451

Browse files
committed
[youtube] Don't use the DASH manifest from 'get_video_info' if 'use_cipher_signature' is True (#5118)
Currently they give a 403 Forbidden error.
1 parent ca4456e commit 87dc451

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

youtube_dl/extractor/youtube.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ def add_dash_mpd(video_info):
967967
video_id, note=False,
968968
errnote='unable to download video info webpage')
969969
get_video_info = compat_parse_qs(video_info_webpage)
970-
add_dash_mpd(get_video_info)
970+
if get_video_info.get('use_cipher_signature') != ['True']:
971+
add_dash_mpd(get_video_info)
971972
if not video_info:
972973
video_info = get_video_info
973974
if 'token' in get_video_info:

0 commit comments

Comments
 (0)