From: Phil Kulak Date: Thu, 15 Jan 2015 18:23:05 +0000 (-0800) Subject: Looks like Google switched to a new JS compiler that includes dollar signs in functio... X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a9b6b5cd15cff004b4109ab64b181fff23c10770;p=youtube-dl Looks like Google switched to a new JS compiler that includes dollar signs in function names. --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index c7611a3a0..073b78fb5 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -588,7 +588,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): def _parse_sig_js(self, jscode): funcname = self._search_regex( - r'\.sig\|\|([a-zA-Z0-9]+)\(', jscode, + r'\.sig\|\|([a-zA-Z0-9\$]+)\(', jscode, 'Initial JS player signature function name') jsi = JSInterpreter(jscode)