Shaya G
f3e5d9dcd3
Fix _remove_comments regex because of function that has “/*” in it:
...
function LB(a) {
if ("undefined" != typeof a.selectNodes) {
var b = Ad(a);
"undefined" != typeof b.setProperty && b.setProperty("SelectionLanguage", "XPath");
return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')
}
if (document.implementation.hasFeature("XPath", "3.0")) {
var b = Ad(a),
c = b.createNSResolver(b.documentElement);
a = b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]', a, c, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var b = [], c = a.snapshotLength, d = 0; d < c; d++) b.push(a.snapshotItem(d));
return b
}
return []
}
2015-02-17 23:17:49 -05:00
Philipp Hagemeister
8cfb6efe6f
[jsinterp] Correct div command
2015-02-02 01:49:32 +01:00
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)
2015-02-01 22:38:29 +01:00
tinybug
85b9275517
Update jsinterp.py
...
http://s.ytimg.com/yts/jsbin/html5player-zh_HK-vfl1NK6PR/html5player.js
fix raise ExtractorError
2014-11-21 17:09:22 +08:00
Philipp Hagemeister
4cb71e9b6a
[jsinterp] Fix slice
2014-07-25 07:04:39 +02:00
Philipp Hagemeister
16f8e9df8a
[jsinterp] Allow uppercase object names
2014-07-25 06:54:52 +02:00
Philipp Hagemeister
892e3192fb
[jsinterp] Do not expect dot in simple function call
2014-07-24 11:33:42 +02:00
Jaime Marquínez Ferrándiz
ebe832dc37
[jsinterp] 'reverse' modifies the array in place ( fixes #3334 )
2014-07-24 11:08:31 +02:00
Philipp Hagemeister
825abb8175
[jsinterp] Implement splice and general improvement
...
I still get 403s on YouTube though.
2014-07-24 10:41:14 +02:00
Philipp Hagemeister
9f43890bcd
[jsinterp] Allow digits in function names
2014-07-23 02:13:48 +02:00
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.
2014-07-15 22:46:39 +02:00
Philipp Hagemeister
fc040bfd05
[jsinterp] Prevent mis-recognitions of local functions
2014-07-11 10:44:56 +02:00
Philipp Hagemeister
61989fb5e9
[jsinterp] Remove superfluous u
2014-07-11 10:40:02 +02:00
Philipp Hagemeister
77ffa95701
[jsinterp] Better error messages
2014-03-30 07:15:14 +02:00
Philipp Hagemeister
2b25cb5d76
[youtube] Move JavaScript interpreter into its own module
2014-03-30 07:02:58 +02:00