mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[jsinterp] Fix slice
This commit is contained in:
parent
4bc7009e8a
commit
4cb71e9b6a
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ def interpret_expression(self, expr, local_vars, allow_recursion):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue