From 7a4c97e76024a548518008a6a832b527427aed98 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Thu, 6 Aug 2026 13:20:27 +0100 Subject: [PATCH] fix: fallback camera name from IP when ONVIF returns no model --- public/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index 2a29597..201654f 100644 --- a/public/app.js +++ b/public/app.js @@ -303,7 +303,7 @@ async function runWizard() { if (found.length > 0) { cameras = found.map(d => ({ id: 'cam_' + d.ip.split('.').pop(), - name: ((d.manufacturer || 'Camera') + ' ' + (d.model || '')).replace(/ /g, '_'), + name: (d.manufacturer || d.model || 'Camera_' + d.ip.split('.').pop()).replace(/ /g, '_'), ip: d.ip, username: user, password: pass,