diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-07-25 07:04:39 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-07-25 07:04:39 +0200 |
commit | 4cb71e9b6ac547d198d8cd3b98cfec23b6a89f02 (patch) | |
tree | adbab2c6edbbc8d3132e832e0053ce8bf6cfbb29 /youtube_dl | |
parent | 4bc7009e8a6aed2b61866ef12ca3d60065ebcd0e (diff) |
[jsinterp] Fix slice
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/jsinterp.py | 2 |
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) |