projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0382ecb
)
[youtube] SWF parser: Add opcode 86
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 17 Jul 2014 21:22:49 +0000
(23:22 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 17 Jul 2014 21:22:49 +0000
(23:22 +0200)
Yes, I know we need 96, but an implementation of 86 could help avoid a similar issue.
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 5449df8e0d6292a8fe45b504e8eea110b8e6a9ca..c2c4fd7e8870980a2bd91d0a6b02a9246c6d6303 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-799,6
+799,13
@@
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
raise NotImplementedError(
u'Unsupported (void) property %r on %r'
% (mname, obj))
+ elif opcode == 86: # newarray
+ arg_count = u30(coder)
+ arr = []
+ for i in range(arg_count):
+ arr.append(stack.pop())
+ arr = arr[::-1]
+ stack.append(arr)
elif opcode == 93: # findpropstrict
index = u30(coder)
mname = multinames[index]