perform some path magic so Voicemeeter receives the entire path

patch bump
This commit is contained in:
onyx-and-iris 2026-03-01 21:29:09 +00:00
parent 2fd7b8ad8b
commit 23b99cb66b
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "vban-cmd" name = "vban-cmd"
version = "2.8.0" version = "2.8.1"
description = "Python interface for the VBAN RT Packet Service (Sendtext)" description = "Python interface for the VBAN RT Packet Service (Sendtext)"
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }] authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
license = { text = "MIT" } license = { text = "MIT" }

View File

@ -102,7 +102,9 @@ class Recorder(IRemote):
def load(self, file: os.PathLike): def load(self, file: os.PathLike):
try: try:
self.setter('load', str(file)) # Convert to string, use forward slashes, and wrap in quotes for spaces
file_path = f'"{os.fspath(file).replace(chr(92), "/")}"'
self.setter('load', file_path)
except UnicodeError: except UnicodeError:
raise VBANCMDError('File full directory must be a raw string') raise VBANCMDError('File full directory must be a raw string')