aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-25 07:04:39 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-25 07:04:39 +0200
commit4cb71e9b6ac547d198d8cd3b98cfec23b6a89f02 (patch)
treeadbab2c6edbbc8d3132e832e0053ce8bf6cfbb29 /youtube_dl
parent4bc7009e8a6aed2b61866ef12ca3d60065ebcd0e (diff)
[jsinterp] Fix slice
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/jsinterp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py
index 7f00586ae..c40cd376d 100644
--- a/youtube_dl/jsinterp.py
+++ b/youtube_dl/jsinterp.py
@@ -108,7 +108,7 @@ class JSInterpreter(object):
index, howMany = argvals
res = []
for i in range(index, min(index + howMany, len(obj))):
- res.append(obj.pop(i))
+ res.append(obj.pop(index))
return res
return obj[member](argvals)