[youtube] Recognize signature functions that contain '$' (fixes #3104)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 19 Jun 2014 14:36:42 +0000 (16:36 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 19 Jun 2014 14:42:49 +0000 (16:42 +0200)
youtube_dl/extractor/youtube.py

index ece62dfce06f832830ac5278c6dd6ffa30cacdb9..d45545ee490867d8f2e89d5c36e038364281a72d 100644 (file)
@@ -440,7 +440,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
 
     def _parse_sig_js(self, jscode):
         funcname = self._search_regex(
-            r'signature=([a-zA-Z]+)', jscode,
+            r'signature=([$a-zA-Z]+)', jscode,
              u'Initial JS player signature function name')
 
         jsi = JSInterpreter(jscode)