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 {

View file

@ -11,6 +11,7 @@
<h1>streamd</h1>
<div class="header-right">
<span id="uptime" class="muted"></span>
<span id="deps-status" class="muted" title="Media tool paths"></span>
<label class="token-box">token <input id="token" type="password" placeholder="STREAMD_TOKEN" autocomplete="off" /></label>
</div>
</header>
@ -26,8 +27,9 @@
<label>channel
<select name="channel" id="channel-select"></select>
</label>
<label class="span2">mpd <input name="mpd" placeholder="https://…/manifest.mpd (optional until capture)" /></label>
<label class="span2">key <textarea name="key" rows="4" placeholder="KID:KEY (one per line; multi-key streams need every key)" spellcheck="false"></textarea></label>
<label class="span2">mpd <input name="mpd" placeholder="https://…/manifest.mpd (required to start)" /></label>
<label class="span2">key <textarea name="key" rows="3" placeholder="optional — KID:KEY lines (clear streams like BBC need no keys)" spellcheck="false"></textarea></label>
<label class="span2">proxy <input name="proxy" placeholder="optional — socks5://127.0.0.1:1080 or http://127.0.0.1:8080 (origin fetch)" /></label>
<label class="span2">headers JSON <input name="headers_json" value="{}" /></label>
<div class="span2 actions">
<button type="submit">Create</button>
@ -70,7 +72,8 @@
<label>title <input name="title" /></label>
<label>channel <input name="channel" /></label>
<label class="span2">mpd <input name="mpd" /></label>
<label class="span2">key <textarea name="key" rows="4" placeholder="KID:KEY (one per line)" spellcheck="false"></textarea></label>
<label class="span2">key <textarea name="key" rows="3" placeholder="optional — KID:KEY (one per line)" spellcheck="false"></textarea></label>
<label class="span2">proxy <input name="proxy" placeholder="socks5://127.0.0.1:1080" /></label>
<label class="span2">headers JSON <input name="headers_json" /></label>
<div class="span2 actions">
<button type="submit" value="save">Save</button>