node-red-contrib-hik-media-buffer 1.1.35 → 1.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -253,9 +253,11 @@ module.exports = function(RED) {
253
253
  // Se l'host di ascolto coincide con l'IP della telecamera termica (canale 2)
254
254
  // e la telecamera restituisce erroneamente canale 1, forziamo il canale a 2
255
255
  const camTermica = node.cameras.find(c => c.channel == "2");
256
- if (camTermica && node.host === camTermica.ip && channelID === "1") {
257
- channelID = "2";
256
+ if (camTermica && node.host === camTermica.ip) {
258
257
  currentEventList = EventListCAM;
258
+ if (channelID === "1") {
259
+ channelID = "2";
260
+ }
259
261
  }
260
262
  let ev = "Unknown";
261
263
  for (let e of currentEventList) { if (data.includes(e.toLowerCase())) { ev = e; break; } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-hik-media-buffer",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
4
4
  "description": "Ottiene buffer video e immagine da camere Hikvision via ISAPI",
5
5
  "keywords": [
6
6
  "node-red",