diff --git a/vban_cmd/vbancmd.py b/vban_cmd/vbancmd.py index 90a93db..ad47a9d 100644 --- a/vban_cmd/vbancmd.py +++ b/vban_cmd/vbancmd.py @@ -175,8 +175,10 @@ class VbanCmd(metaclass=ABCMeta): def param(key): obj, m2, *rem = key.split("-") index = int(m2) if m2.isnumeric() else int(*rem) - if obj in ("strip", "bus"): + if obj in ("strip", "bus", "button"): return getattr(self, obj)[index] + elif obj == "vban": + return getattr(getattr(self, obj), f"{m2}stream")[index] else: raise ValueError(obj)