From: Rogério Brito Date: Mon, 21 Jan 2019 14:11:15 +0000 (-0200) Subject: Update upstream source from tag 'upstream/2019.01.17' X-Git-Url: https://git.rapsys.eu/youtubedl/commitdiff_plain/c39143087e10ba3fe3c3a309b847354b82d6125e?hp=a8e7aba9859e62297ac6d938a37ba982d4fe5eb8 Update upstream source from tag 'upstream/2019.01.17' Update to upstream version '2019.01.17' with Debian dir 776ecd3e4aba0111d8281dad6f835031b02ee41c --- diff --git a/ChangeLog b/ChangeLog index 13019bf..9023017 100644 --- 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 diff --git a/youtube-dl b/youtube-dl index 542006d..e1f15af 100755 Binary files a/youtube-dl and b/youtube-dl differ diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 7309356..c8bf98b 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1198,8 +1198,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): funcname = self._search_regex( (r'(["\'])signature\1\s*,\s*(?P[a-zA-Z0-9$]+)\(', r'\.sig\|\|(?P[a-zA-Z0-9$]+)\(', - r'yt\.akamaized\.net/\)\s*\|\|\s*.*?\s*c\s*&&\s*d\.set\([^,]+\s*,\s*(?P[a-zA-Z0-9$]+)\(', - r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*(?P[a-zA-Z0-9$]+)\(', + r'yt\.akamaized\.net/\)\s*\|\|\s*.*?\s*c\s*&&\s*d\.set\([^,]+\s*,\s*(?:encodeURIComponent\s*\()?(?P[a-zA-Z0-9$]+)\(', + r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*(?:encodeURIComponent\s*\()?\s*(?P[a-zA-Z0-9$]+)\(', r'\bc\s*&&\s*d\.set\([^,]+\s*,\s*\([^)]*\)\s*\(\s*(?P[a-zA-Z0-9$]+)\('), jscode, 'Initial JS player signature function name', group='sig') diff --git a/youtube_dl/version.py b/youtube_dl/version.py index c13f3a3..ea3f629 100644 --- a/youtube_dl/version.py +++ b/youtube_dl/version.py @@ -1,3 +1,3 @@ from __future__ import unicode_literals -__version__ = '2019.01.16' +__version__ = '2019.01.17'