diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-09-07 13:56:35 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-09-07 13:56:35 -0700 |
commit | 0cb96b108742b9371bf1c6dba5680fc854741663 (patch) | |
tree | a8ba00d35546a0c4f6705ead2c0f3d126303ee28 /youtube_dl | |
parent | 5f4d4e0499ab679a8c6c0de9410bbf208c59eaba (diff) | |
download | yt-local-0cb96b108742b9371bf1c6dba5680fc854741663.tar.lz yt-local-0cb96b108742b9371bf1c6dba5680fc854741663.tar.xz yt-local-0cb96b108742b9371bf1c6dba5680fc854741663.zip |
add fix for rg3/youtube-dl#17457
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 3d910a4..85c90dc 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1180,7 +1180,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor): def _parse_sig_js(self, jscode): funcname = self._search_regex( (r'(["\'])signature\1\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(', - r'\.sig\|\|(?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$]+)\('), jscode, 'Initial JS player signature function name', group='sig') jsi = JSInterpreter(jscode) |