]> Raphaël G. Git Repositories - youtubedl/commitdiff
New upstream version 2019.01.17
authorRogério Brito <rbrito@ime.usp.br>
Mon, 21 Jan 2019 14:11:06 +0000 (12:11 -0200)
committerRogério Brito <rbrito@ime.usp.br>
Mon, 21 Jan 2019 14:11:06 +0000 (12:11 -0200)
ChangeLog
youtube-dl
youtube_dl/extractor/youtube.py
youtube_dl/version.py

index 13019bf2b03f87daf786e59ae30204dcfd7c459e..902301765aef0e3688058d895b98ed72e7a4c74f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+version 2019.01.17
+
+Extractors
+* [youtube] Extend JS player signature function name regular expressions
+  (#18890, #18891, #18893)
+
+
 version 2019.01.16
 
 Core
index 542006d3f44f67b08f9e492aafc1454e570d971c..e1f15af873a32c3be121216fd5cea546b37b1bc6 100755 (executable)
Binary files a/youtube-dl and b/youtube-dl differ
index 730935657981ca23ffe981b4e4afce2bbca22078..c8bf98b5864fcce75d830f49e719797af6af7205 100644 (file)
@@ -1198,8 +1198,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
         funcname = self._search_regex(
             (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'yt\.akamaized\.net/\)\s*\|\|\s*.*?\s*c\s*&&\s*d\.set\([^,]+\s*,\s*(?:encodeURIComponent\s*\()?(?P<sig>[a-zA-Z0-9$]+)\(',
+             r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*(?:encodeURIComponent\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')
 
index c13f3a38ad01e8f7355e886e696b2fba361e2a69..ea3f629286f032ab47c3229805f422f9271169ac 100644 (file)
@@ -1,3 +1,3 @@
 from __future__ import unicode_literals
 
-__version__ = '2019.01.16'
+__version__ = '2019.01.17'