streamd: optional keys, per-stream proxy, auto deps; agent module.yaml sync; RTE AutoPlay; Telegram release announces
All checks were successful
release / build-and-upload (push) Successful in 6m20s
modules-release / build-and-upload (push) Successful in 4m51s

- streamd: MPD-only start, proxy field, ffmpeg/NRE/mp4decrypt auto-install
- GET/PUT /api/modules for module.yaml sync; agent sync_modules
- RTE Live-tab AutoPlay fixes; modules zip named bbc/rte/tg4.zip
- Telegram notify scripts wired into Forgejo release workflows
This commit is contained in:
404errordeveloper 2026-10-09 00:17:23 +02:00
parent f9c28be3f1
commit ac8701b5a6
36 changed files with 1460 additions and 143 deletions

View file

@ -63,7 +63,7 @@
}
listMsg.textContent = streams.length + " stream(s)";
rowsEl.innerHTML = streams.map((s) => {
const need = !s.mpd || !s.key ? " needs capture" : "";
const need = !s.mpd ? " needs MPD" : "";
return `<tr>
<td><strong>${esc(s.name)}</strong><div class="muted">${esc(s.title || "")}${need}</div></td>
<td>${esc(s.app)} / ${esc(s.channel)}</td>
@ -98,6 +98,25 @@
agentsEl.textContent = "agents: " + list.map((a) => a.agent_id).join(", ");
}
const depsEl = document.getElementById("deps-status");
function renderDeps(d) {
if (!depsEl || !d) return;
const bit = (label, path) => (path ? label + "✓" : label + "✗");
depsEl.textContent = [
bit("ffmpeg", d.ffmpeg),
bit("nre", d.nre),
bit("mp4decrypt", d.mp4decrypt),
].join(" · ");
depsEl.title = [
"bin: " + (d.bin_dir || ""),
"ffmpeg: " + (d.ffmpeg || "(missing)"),
"nre: " + (d.nre || "(missing)"),
"mp4decrypt: " + (d.mp4decrypt || "(missing)"),
...(d.notes || []),
].join("\n");
}
async function refresh() {
try {
const [health, list, agents] = await Promise.all([
@ -106,6 +125,7 @@
api("/api/agents").catch(() => ({ agents: [] })),
]);
uptimeEl.textContent = "up " + Math.floor(health.uptime_s || 0) + "s";
renderDeps(health.deps);
render(list.streams || []);
renderAgents(agents.agents || []);
listMsg.classList.remove("err");
@ -212,6 +232,7 @@
editForm.channel.value = st.channel || "";
editForm.mpd.value = st.mpd || "";
editForm.key.value = st.key || "";
if (editForm.proxy) editForm.proxy.value = st.proxy || "";
editForm.headers_json.value = st.headers_json || "{}";
dlg.showModal();
return;
@ -238,6 +259,7 @@
channel: editForm.channel.value,
mpd: editForm.mpd.value,
key: editForm.key.value,
proxy: editForm.proxy ? editForm.proxy.value : "",
headers_json: editForm.headers_json.value,
};
try {