Explorar o código

[youtube] pass embed URL to get_video_info request

Remita Amine %!s(int64=4) %!d(string=hai) anos
pai
achega
ab25f3f431
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      youtube_dl/extractor/youtube.py

+ 1 - 0
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)