From: Aaron Wojnowski Date: Thu, 13 Nov 2014 06:33:27 +0000 (-0600) Subject: Fix YouTube signature extraction. X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=894dd8682e07be0d85d1eb2401b9f99ce056e809;p=youtube-dl Fix YouTube signature extraction. --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 5406de50b..cea3d5c95 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -510,7 +510,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): def _parse_sig_js(self, jscode): funcname = self._search_regex( - r'signature=([$a-zA-Z]+)', jscode, + r'\.sig\|\|([a-zA-Z0-9]+)\(', jscode, 'Initial JS player signature function name') jsi = JSInterpreter(jscode)