diff options
author | Philipp Hagemeister <[email protected]> | 2014-07-17 23:22:49 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-07-17 23:22:49 +0200 |
commit | 3fbd27f73ef1f3507443d0e0907a4c0b19a63ed8 (patch) | |
tree | 33daefc0a40a01e72b371c62dcb693383f8b8db5 /youtube_dl | |
parent | 0382ecb78d763abf579e686c56085877eef7897c (diff) | |
download | youtube-dl-3fbd27f73ef1f3507443d0e0907a4c0b19a63ed8.tar.gz youtube-dl-3fbd27f73ef1f3507443d0e0907a4c0b19a63ed8.zip |
[youtube] SWF parser: Add opcode 86
Yes, I know we need 96, but an implementation of 86 could help avoid a similar issue.
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 5449df8e0..c2c4fd7e8 100644 --- 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] |