diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2014-07-23 12:16:26 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2014-07-23 12:16:26 +0200 |
commit | c084c93402f13d9dd66b738c4717537f2ab8e844 (patch) | |
tree | 55e5c85d441ad45610cd8cd99ff16b3dfb6de28d | |
parent | d799b47b82e7b0d310427bf26bfaacef1e544f7d (diff) | |
download | youtube-dl-c084c93402f13d9dd66b738c4717537f2ab8e844.tar.gz youtube-dl-c084c93402f13d9dd66b738c4717537f2ab8e844.zip |
[youtube] Extract the 'sts' parameter from the webpage (fixes #3327)
-rw-r--r-- | youtube_dl/extractor/youtube.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index a346f4c96..2b346d4f8 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -611,7 +611,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): data = compat_urllib_parse.urlencode({ 'video_id': 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_webpage = self._download_webpage(video_info_url, video_id, |