Fix YouTube signature extraction.
authorAaron Wojnowski <aaronwojnowski@gmail.com>
Thu, 13 Nov 2014 06:33:27 +0000 (00:33 -0600)
committerAaron Wojnowski <aaronwojnowski@gmail.com>
Thu, 13 Nov 2014 06:33:27 +0000 (00:33 -0600)
youtube_dl/extractor/youtube.py

index 5406de50b465e95ee2481aecc61d0e7747bf379e..cea3d5c951d4209af24ed32111dd368802c0a183 100644 (file)
@@ -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)