projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1eae16
)
Fix splice to handle float
author
dirkf
<fieldhouse@gmx.net>
Sat, 27 Nov 2021 02:06:13 +0000
(
02:06
+0000)
committer
dirkf
<fieldhouse@gmx.net>
Sun, 30 Jan 2022 00:05:54 +0000
(
00:05
+0000)
Needed for new youtube js player
f1ca6900
Add https://github.com/yt-dlp/yt-dlp/commit/
57dbe8077f8d00e0fffac53669f40cd7d584474f
#diff-
729b57caa8d006426f6a8960c061f519a8b6658682284015e069745af52ffb07
youtube_dl/jsinterp.py
patch
|
blob
|
history
diff --git
a/youtube_dl/jsinterp.py
b/youtube_dl/jsinterp.py
index c35765702a649203cd492c2a4598c4d6a9e60c39..c75cf45b9540fe2e2e22647deca0a1c8bbdd02bb 100644
(file)
--- a/
youtube_dl/jsinterp.py
+++ b/
youtube_dl/jsinterp.py
@@
-416,7
+416,7
@@
class JSInterpreter(object):
elif member == 'splice':
assertion(isinstance(obj, list), 'must be applied on a list')
assertion(argvals, 'takes one or more arguments')
- index, howMany =
(argvals + [len(obj)])[:2]
+ index, howMany =
map(int, (argvals + [len(obj)])[:2])
if index < 0:
index += len(obj)
add_items = argvals[2:]