Browse Source

[jsinterp] Fix slice

Philipp Hagemeister 11 years ago
parent
commit
4cb71e9b6a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/jsinterp.py

+ 1 - 1
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)