aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/swfinterp.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-17 03:46:23 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-17 03:46:23 +0100
commit4baafa229d5e013a62d636fa60920cdc1a876a5a (patch)
tree1de90482af7cbbdd05774a302899695976fcd6b2 /youtube_dl/swfinterp.py
parent7f3e33a1475cd4ac11c73108e03d3405b86262b8 (diff)
[swfinterp] Intepret more multinames
Diffstat (limited to 'youtube_dl/swfinterp.py')
-rw-r--r--youtube_dl/swfinterp.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.py
index e5deb2c14..7c0ee1e61 100644
--- a/youtube_dl/swfinterp.py
+++ b/youtube_dl/swfinterp.py
@@ -213,6 +213,10 @@ class SWFInterpreter(object):
u30() # namespace_idx
name_idx = u30()
self.multinames.append(self.constant_strings[name_idx])
+ elif kind == 0x09:
+ name_idx = u30()
+ u30()
+ self.multinames.append(self.constant_strings[name_idx])
else:
self.multinames.append(_Multiname(kind))
for _c2 in range(MULTINAME_SIZES[kind]):
@@ -557,6 +561,11 @@ class SWFInterpreter(object):
obj = stack.pop()
assert isinstance(obj, list)
stack.append(len(obj))
+ elif isinstance(pname, compat_str): # Member access
+ obj = stack.pop()
+ assert isinstance(obj, (dict, _ScopeDict)), \
+ 'Accessing member on %r' % obj
+ stack.append(obj[pname])
else: # Assume attribute access
idx = stack.pop()
assert isinstance(idx, int)