Claude: Phase 2 seems to work

This commit is contained in:
chk
2026-06-04 21:25:50 +02:00
parent e9f1ce73eb
commit c0d9deacd9
2 changed files with 35 additions and 6 deletions

View File

@@ -216,7 +216,9 @@ function createSnapshotRouter(go2rtcUrl) {
if (!r.ok) throw new Error(`go2rtc HTTP ${r.status}`);
const streams = await r.json();
res.json({
cameras: Object.keys(streams).map(id => ({ id, url: `/api/snapshot/${id}` })),
cameras: Object.keys(streams)
.filter(id => !id.endsWith('_hires'))
.map(id => ({ id, url: `/api/snapshot/${id}` })),
});
} catch (err) {
res.status(503).json({ error: `go2rtc nicht erreichbar: ${err.message}` });