mirror of
https://github.com/soimort/you-get.git
synced 2025-03-12 02:10:13 +03:00
[youtube] fix signature extraction
This commit is contained in:
parent
ed99b91d18
commit
098b6a9dd8
@ -52,7 +52,7 @@ class YouTube(VideoExtractor):
|
|||||||
return code
|
return code
|
||||||
|
|
||||||
js = js.replace('\n', ' ')
|
js = js.replace('\n', ' ')
|
||||||
f1 = match1(js, r'\w+\.sig\|\|([$\w]+)\(\w+\.\w+\)')
|
f1 = match1(js, r'"signature",([\w]+)\(\w+\.\w+\)')
|
||||||
f1def = match1(js, r'function %s(\(\w+\)\{[^\{]+\})' % re.escape(f1)) or \
|
f1def = match1(js, r'function %s(\(\w+\)\{[^\{]+\})' % re.escape(f1)) or \
|
||||||
match1(js, r'\W%s=function(\(\w+\)\{[^\{]+\})' % re.escape(f1))
|
match1(js, r'\W%s=function(\(\w+\)\{[^\{]+\})' % re.escape(f1))
|
||||||
f1def = re.sub(r'([$\w]+\.)([$\w]+\(\w+,\d+\))', r'\2', f1def)
|
f1def = re.sub(r'([$\w]+\.)([$\w]+\(\w+,\d+\))', r'\2', f1def)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user