mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
Update youtube.py
No longer works on VEVO encoded videos such as http://www.youtube.com/watch?v=3O1_3zBUKM8 This more general regular expression fixes it.
This commit is contained in:
parent
5a92ae53c4
commit
d1e3f6f1e9
@ -45,7 +45,7 @@ def decipher(js, s):
|
||||
code = re.sub(r'(\w+).split\(""\)', r'list(\1)', code)
|
||||
return code
|
||||
|
||||
f1 = match1(js, r'g.sig\|\|(\w+)\(g.s\)')
|
||||
f1 = match1(js, r'\w+\.sig\|\|(\w+)\(\w+\.\w+\)')
|
||||
f1def = match1(js, r'(function %s\(\w+\)\{[^\{]+\})' % f1)
|
||||
code = tr_js(f1def)
|
||||
f2 = match1(f1def, r'(\w+)\(\w+,\d+\)')
|
||||
|
Loading…
Reference in New Issue
Block a user