@apocaliss92/scrypted-reolink-native 0.2.5 → 0.2.6

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.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Use any reolink camera with Scrypted, even older/unsupported models without HTTP protocol support",
5
5
  "author": "@apocaliss92",
6
6
  "license": "Apache",
package/src/camera.ts CHANGED
@@ -2698,6 +2698,16 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
2698
2698
  this.storageSettings.settings.clipsSource.hide = !this.nvrDevice;
2699
2699
  this.storageSettings.settings.clipsSource.defaultValue = this.nvrDevice ? "NVR" : "Device";
2700
2700
 
2701
+ // if (!!this.multiFocalDevice) {
2702
+ // const allSettingKeys = Object.keys(this.storageSettings.settings);
2703
+
2704
+ // for (const key of allSettingKeys) {
2705
+ // const setting = this.storageSettings.settings[key];
2706
+ // if (['Videoclips', 'PTZ'].includes(setting.subgroup)) {
2707
+ // setting.hide = true;
2708
+ // }
2709
+ // }
2710
+ // }
2701
2711
  this.storageSettings.settings.enableVideoclips.hide = !!this.multiFocalDevice;
2702
2712
  this.storageSettings.settings.videoclipsDaysToPreload.hide = !!this.multiFocalDevice;
2703
2713
  this.storageSettings.settings.videoclipsRegularChecks.hide = !!this.multiFocalDevice;
@@ -2753,7 +2763,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
2753
2763
  this.intercom = new ReolinkBaichuanIntercom(this);
2754
2764
  }
2755
2765
 
2756
- if (hasPtz) {
2766
+ if (hasPtz && !this.multiFocalDevice) {
2757
2767
  const choices = (this.presets || []).map((preset: any) => preset.id + '=' + preset.name);
2758
2768
 
2759
2769
  this.storageSettings.settings.presets.choices = choices;