fix: fallback camera name from IP when ONVIF returns no model
This commit is contained in:
parent
c4c9049e24
commit
7a4c97e760
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue