We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f6cf9 commit 60f5a02Copy full SHA for 60f5a02
twitchio/ext/overlays/core.py
@@ -128,10 +128,11 @@ def set_audio(self, file: str | os.PathLike[str]) -> Self:
128
data: NodeDataT = {}
129
identifier: str = secrets.token_urlsafe(4)
130
131
+ uri = f"media/{file}" if not str(file).startswith(("http://", "https://")) else file
132
data["type"] = "audio"
133
data["location"] = str(file)
134
data["html_id"] = identifier
- data["raw"] = f"<audio id='{identifier}'><source src='media/{file}'></audio>"
135
+ data["raw"] = f"<audio id='{identifier}'><source src='{uri}'></audio>"
136
137
node = Node(data)
138
self._audio = node
0 commit comments