From: Rogério Brito Date: Mon, 21 Jan 2019 14:11:06 +0000 (-0200) Subject: New upstream version 2019.01.17 X-Git-Url: https://git.rapsys.eu/youtubedl/commitdiff_plain/89277dac2be6a6adf1f3969b79a989cee957ed03?ds=sidebyside;hp=89bb9e23b34f43c6563524917f7dffb9841a972e New upstream version 2019.01.17 --- 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'