浏览代码

[youtube] SWF parser: Add opcode 86

Yes, I know we need 96, but an implementation of 86 could help avoid a similar issue.
Philipp Hagemeister 11 年之前
父节点
当前提交
3fbd27f73e
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      youtube_dl/extractor/youtube.py

+ 7 - 0
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]