diff --git a/pyproject.toml b/pyproject.toml index fe5af72..cc6ace5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "voicemeeter-api" -version = "2.4.6" +version = "2.4.7" description = "A Python wrapper for the Voiceemeter API" authors = ["onyx-and-iris "] license = "MIT" diff --git a/voicemeeterlib/remote.py b/voicemeeterlib/remote.py index a7c6ac0..51f7bc9 100644 --- a/voicemeeterlib/remote.py +++ b/voicemeeterlib/remote.py @@ -301,10 +301,16 @@ class Remote(CBindings): def target(key): match key.split("-"): - case ["strip" | "bus" | "button" as kls, index]: + case ["strip" | "bus" | "button" as kls, index] if index.isnumeric(): target = getattr(self, kls) - case ["vban", direction, index]: - target = getattr(self.vban, f"{direction.rstrip('stream')}stream") + case [ + "vban", + "in" | "instream" | "out" | "outstream" as direction, + index, + ] if index.isnumeric(): + target = getattr( + self.vban, f"{direction.removesuffix('stream')}stream" + ) case _: ERR_MSG = f"invalid config key '{key}'" self.logger.error(ERR_MSG)