fix: fallback camera name from IP when ONVIF returns no model

This commit is contained in:
Claus Lohmar 2026-08-06 13:20:27 +01:00
parent c4c9049e24
commit 7a4c97e760

View file

@ -303,7 +303,7 @@ async function runWizard() {
if (found.length > 0) { if (found.length > 0) {
cameras = found.map(d => ({ cameras = found.map(d => ({
id: 'cam_' + d.ip.split('.').pop(), 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, ip: d.ip,
username: user, username: user,
password: pass, password: pass,