mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 17:02:51 +08:00
This commit is contained in:
parent
dadb836139
commit
f729f1ceed
@ -1028,7 +1028,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
def _parse_sig_js(self, jscode):
|
||||
funcname = self._search_regex(
|
||||
r'\.sig\|\|([a-zA-Z0-9$]+)\(', jscode,
|
||||
r'"signature",\s?([a-zA-Z0-9$]+)\(', jscode,
|
||||
'Initial JS player signature function name')
|
||||
|
||||
jsi = JSInterpreter(jscode)
|
||||
@ -1050,6 +1050,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
if player_url.startswith('//'):
|
||||
player_url = 'https:' + player_url
|
||||
elif player_url.startswith('/'):
|
||||
player_url = 'https://youtube.com' + player_url
|
||||
|
||||
try:
|
||||
player_id = (player_url, self._signature_cache_id(s))
|
||||
if player_id not in self._player_cache:
|
||||
|
Loading…
Reference in New Issue
Block a user