@apocaliss92/scrypted-reolink-native 0.0.4 → 0.0.5

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.
package/dist/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apocaliss92/scrypted-reolink-native",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Reolink Native plugin for Scrypted",
5
5
  "author": "@apocaliss92",
6
6
  "license": "Apache",
package/src/camera.ts CHANGED
@@ -230,7 +230,7 @@ export class ReolinkNativeCamera extends ScryptedDeviceBase implements VideoCame
230
230
  combobox: true,
231
231
  immediate: true,
232
232
  defaultValue: [],
233
- choices: ['enabled', 'debugRtsp', 'traceStream', 'traceTalk', 'debugH264', 'debugParamSets', 'eventLogs'],
233
+ choices: ['enabled', 'debugRtsp', 'traceStream', 'traceTalk', 'traceEvents', 'debugH264', 'debugParamSets', 'eventLogs'],
234
234
  onPut: async (ov, value) => {
235
235
  // Only reconnect if Baichuan-client flags changed; toggling event logs should be immediate.
236
236
  const oldSel = new Set(ov);
@@ -238,7 +238,7 @@ export class ReolinkNativeCamera extends ScryptedDeviceBase implements VideoCame
238
238
  oldSel.delete('eventLogs');
239
239
  newSel.delete('eventLogs');
240
240
 
241
- const changed = oldSel.size !== newSel.size;
241
+ const changed = oldSel.size !== newSel.size || Array.from(oldSel).some((k) => !newSel.has(k));
242
242
  if (changed) {
243
243
  await this.resetBaichuanClient('debugLogs changed');
244
244
  }
@@ -591,7 +591,7 @@ export class ReolinkNativeCamera extends ScryptedDeviceBase implements VideoCame
591
591
 
592
592
  const debugOptions: DebugOptions = {};
593
593
  // Only pass through Baichuan client debug flags.
594
- const clientKeys = new Set(['enabled', 'debugRtsp', 'traceStream', 'traceTalk', 'debugH264', 'debugParamSets']);
594
+ const clientKeys = new Set(['enabled', 'debugRtsp', 'traceStream', 'traceTalk', 'traceEvents', 'debugH264', 'debugParamSets']);
595
595
  for (const k of sel) {
596
596
  if (!clientKeys.has(k)) continue;
597
597
  debugOptions[k] = true;