From: Philipp Hagemeister Date: Fri, 25 Jul 2014 05:04:39 +0000 (+0200) Subject: [jsinterp] Fix slice X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4cb71e9b6ac547d198d8cd3b98cfec23b6a89f02;p=youtube-dl [jsinterp] Fix slice --- 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)