]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Add another JS signature function name regex (closes #18091, closes #18093...
authorSergey M․ <dstftw@gmail.com>
Wed, 7 Nov 2018 02:55:59 +0000 (09:55 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 7 Nov 2018 02:55:59 +0000 (09:55 +0700)
youtube_dl/extractor/youtube.py

index 6ab2db274f24e371ccd63ee3f498c23306b58fd6..3f49f3889e6bcde1bd0f641f9f421caf8d560b1c 100644 (file)
@@ -1192,7 +1192,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
             (r'(["\'])signature\1\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(',
              r'\.sig\|\|(?P<sig>[a-zA-Z0-9$]+)\(',
              r'yt\.akamaized\.net/\)\s*\|\|\s*.*?\s*c\s*&&\s*d\.set\([^,]+\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(',
-             r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\('),
+             r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(',
+             r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*\([^)]*\)\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\('),
             jscode, 'Initial JS player signature function name', group='sig')
 
         jsi = JSInterpreter(jscode)