mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
parent
b746ac01c9
commit
fbf46b0453
@ -109,7 +109,7 @@ class YouTube(VideoExtractor):
|
|||||||
else:
|
else:
|
||||||
f2def = re.search(r'[^$\w]%s:function\((\w+)\)(\{[^\{\}]+\})' % f2e, js)
|
f2def = re.search(r'[^$\w]%s:function\((\w+)\)(\{[^\{\}]+\})' % f2e, js)
|
||||||
f2def = 'function {}({},b){}'.format(f2e, f2def.group(1), f2def.group(2))
|
f2def = 'function {}({},b){}'.format(f2e, f2def.group(1), f2def.group(2))
|
||||||
f2 = re.sub(r'(\W)(as|if|in|is|or)\(', r'\1_\2(', f2)
|
f2 = re.sub(r'(as|if|in|is|or)', r'_\1', f2)
|
||||||
f2 = re.sub(r'\$', '_dollar', f2)
|
f2 = re.sub(r'\$', '_dollar', f2)
|
||||||
code = code + 'global %s\n' % f2 + tr_js(f2def)
|
code = code + 'global %s\n' % f2 + tr_js(f2def)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user