|
|
@ -609,14 +609,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
|
|
|
age_gate = True
|
|
|
|
age_gate = True
|
|
|
|
# We simulate the access to the video from www.youtube.com/v/{video_id}
|
|
|
|
# We simulate the access to the video from www.youtube.com/v/{video_id}
|
|
|
|
# this can be viewed without login into Youtube
|
|
|
|
# this can be viewed without login into Youtube
|
|
|
|
data = compat_urllib_parse.urlencode({'video_id': video_id,
|
|
|
|
data = compat_urllib_parse.urlencode({
|
|
|
|
'el': 'player_embedded',
|
|
|
|
'video_id': video_id,
|
|
|
|
'gl': 'US',
|
|
|
|
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
|
|
|
|
'hl': 'en',
|
|
|
|
'sts':'16268',
|
|
|
|
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
|
|
|
|
})
|
|
|
|
'asv': 3,
|
|
|
|
|
|
|
|
'sts':'1588',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
video_info_url = proto + '://www.youtube.com/get_video_info?' + data
|
|
|
|
video_info_url = proto + '://www.youtube.com/get_video_info?' + data
|
|
|
|
video_info_webpage = self._download_webpage(video_info_url, video_id,
|
|
|
|
video_info_webpage = self._download_webpage(video_info_url, video_id,
|
|
|
|
note=False,
|
|
|
|
note=False,
|
|
|
|