aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
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)