Fix interface merging, error ordering, sACN client, and add charset headers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-28 22:57:13 -08:00
parent aebd6f5e2c
commit ed9a0cd60d
4 changed files with 51 additions and 12 deletions

View File

@@ -1992,9 +1992,21 @@
const sacnUniverseInputs = new Map();
const sacnUniverseOutputs = new Map();
function getSacnInputsFromMulticast(node) {
const groups = node.multicast_groups || [];
const inputs = [];
groups.forEach(g => {
if (typeof g === 'string' && g.startsWith('sacn:')) {
const u = parseInt(g.substring(5), 10);
if (!isNaN(u)) inputs.push(u);
}
});
return inputs;
}
nodes.forEach(node => {
const name = getShortLabel(node);
(node.sacn_inputs || []).forEach(u => {
getSacnInputsFromMulticast(node).forEach(u => {
if (!sacnUniverseInputs.has(u)) sacnUniverseInputs.set(u, []);
sacnUniverseInputs.get(u).push(name);
});
@@ -2012,7 +2024,7 @@
nodes.forEach(node => {
const nodeId = node.id;
const sacnInputs = node.sacn_inputs || [];
const sacnInputs = getSacnInputsFromMulticast(node);
const sacnOutputs = node.sacn_outputs || [];
if (sacnInputs.length === 0 && sacnOutputs.length === 0) return;