logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: ab25f3f43196ca56964ba34ba4674fcb2d08f69a
parent 07f7aad81c47a11483a357e53380fae1ffbadea9
Author: Remita Amine <remitamine@gmail.com>
Date:   Wed,  3 Feb 2021 17:15:31 +0100

[youtube] pass embed URL to get_video_info request

Diffstat:

Myoutube_dl/extractor/youtube.py1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -1397,6 +1397,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'Refetching age-gated info webpage', 'unable to download video info webpage', query={ 'video_id': video_id, + 'eurl': 'https://www.youtube.com/embed/' + video_id, }, fatal=False)), lambda x: x['player_response'][0], compat_str) or '{}', video_id)