mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[youtube] Extract the 'sts' parameter from the webpage (fixes #3327)
This commit is contained in:
parent
d799b47b82
commit
c084c93402
1 changed files with 2 additions and 1 deletions
|
@ -611,7 +611,8 @@ def _real_extract(self, url):
|
||||||
data = compat_urllib_parse.urlencode({
|
data = compat_urllib_parse.urlencode({
|
||||||
'video_id': video_id,
|
'video_id': video_id,
|
||||||
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
|
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
|
||||||
'sts':'16268',
|
'sts': self._search_regex(
|
||||||
|
r'"sts"\s*:\s*(\d+)', video_webpage, 'sts'),
|
||||||
})
|
})
|
||||||
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,
|
||||||
|
|
Loading…
Reference in a new issue