This commit is contained in:
eric
2026-03-25 09:40:29 -05:00
parent 23a8996114
commit 5996df8702
72 changed files with 1347 additions and 18322 deletions

View File

@@ -109,6 +109,9 @@ class BuiltinSupervisor:
out_p.parent.mkdir(parents=True, exist_ok=True)
out_f = open(out_p, "ab")
err_f = open(err_p, "ab")
extra: dict[str, str] = {}
if process_name.startswith("youtube2__"):
extra["RELAY_CHANNEL_ID"] = process_name[len("youtube2__") :]
try:
proc = await asyncio.create_subprocess_exec(
*argv,
@@ -116,7 +119,7 @@ class BuiltinSupervisor:
stdout=out_f,
stderr=err_f,
creationflags=0,
env=merge_child_env(),
env=merge_child_env(extra),
)
except Exception as e:
out_f.close()