diff --git a/plugins/hikvision/package-lock.json b/plugins/hikvision/package-lock.json index e43cfee96..c1d28a2f1 100644 --- a/plugins/hikvision/package-lock.json +++ b/plugins/hikvision/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/hikvision", - "version": "0.0.148", + "version": "0.0.149", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/hikvision", - "version": "0.0.148", + "version": "0.0.149", "license": "Apache", "dependencies": { "@scrypted/common": "file:../../common", diff --git a/plugins/hikvision/package.json b/plugins/hikvision/package.json index df71a7d71..5b5c335f1 100644 --- a/plugins/hikvision/package.json +++ b/plugins/hikvision/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/hikvision", - "version": "0.0.148", + "version": "0.0.149", "description": "Hikvision Plugin for Scrypted", "author": "Scrypted", "license": "Apache", diff --git a/plugins/hikvision/src/main.ts b/plugins/hikvision/src/main.ts index eb9a45569..4667a93e5 100644 --- a/plugins/hikvision/src/main.ts +++ b/plugins/hikvision/src/main.ts @@ -134,7 +134,7 @@ class HikvisionCamera extends RtspSmartCamera implements Camera, Intercom, Reboo const xml = await xml2js.parseStringPromise(data); - const [channelId] = xml.EventNotificationAlert.channelID; + const [channelId] = xml.EventNotificationAlert.channelID || xml.EventNotificationAlert.dynChannelID; if (!await checkCameraNumber(channelId)) { this.console.warn('chann fail') return;