Philipp Hagemeister
3eff81fbf7
[jsinterp] Disable comment support
...
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.
Fixes #4976 , fixes #4979 , fixes #4980 , fixes #4981 , fixes #4982 .
Closes #4977 .
10 years ago
Philipp Hagemeister
8cfb6efe6f
[jsinterp] Correct div command
10 years ago
Philipp Hagemeister
9e3f19919a
[jsinterp] Beef up and add tests
...
In preparation for #4822 , extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)
10 years ago
tinybug
85b9275517
Update jsinterp.py
...
http://s.ytimg.com/yts/jsbin/html5player-zh_HK-vfl1NK6PR/html5player.js
fix raise ExtractorError
10 years ago
Philipp Hagemeister
4cb71e9b6a
[jsinterp] Fix slice
11 years ago
Philipp Hagemeister
16f8e9df8a
[jsinterp] Allow uppercase object names
11 years ago
Philipp Hagemeister
892e3192fb
[jsinterp] Do not expect dot in simple function call
11 years ago
Jaime Marquínez Ferrándiz
ebe832dc37
[jsinterp] 'reverse' modifies the array in place ( fixes #3334 )
11 years ago
Philipp Hagemeister
825abb8175
[jsinterp] Implement splice and general improvement
...
I still get 403s on YouTube though.
11 years ago
Philipp Hagemeister
9f43890bcd
[jsinterp] Allow digits in function names
11 years ago
Jaime Marquínez Ferrándiz
ad25aee245
[youtube & jsinterp] Fix signature extraction ( fixes #3255 )
...
Some functions are defined now inside an object, the jsinterp will search its definition if the variable is not defined in the local namespace.
11 years ago
Philipp Hagemeister
fc040bfd05
[jsinterp] Prevent mis-recognitions of local functions
11 years ago
Philipp Hagemeister
61989fb5e9
[jsinterp] Remove superfluous u
11 years ago
Philipp Hagemeister
77ffa95701
[jsinterp] Better error messages
11 years ago
Philipp Hagemeister
2b25cb5d76
[youtube] Move JavaScript interpreter into its own module
11 years ago