From ae02d4b1cd051640e1772689aee756a38dfc2eea Mon Sep 17 00:00:00 2001 From: Protuhj Date: Sat, 20 May 2017 13:38:20 -0400 Subject: [PATCH] Moved comment to where sts is retrieved. --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 9e2a62dd8..b24933867 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1439,6 +1439,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): # Try looking directly into the video webpage ytplayer_config = self._get_ytplayer_config(video_id, video_webpage) if ytplayer_config: + # up-to-date sts value is required to properly decode the signature, if the video has one sts = ytplayer_config.get('sts', '') args = ytplayer_config['args'] if args.get('url_encoded_fmt_stream_map'): @@ -1461,7 +1462,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor): # The general idea is to take a union of itags of both DASH manifests (for example # video with such 'manifest behavior' see https://github.com/rg3/youtube-dl/issues/6093) - # up-to-date sts value is required to properly decode the signature self.report_video_info_webpage_download(video_id) for el_type in ['&el=info', '&el=embedded', '&el=detailpage', '&el=vevo', '']: video_info_url = (