@apocaliss92/scrypted-reolink-native 0.2.4 → 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.4",
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,22 @@ 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
+ // }
2711
+ this.storageSettings.settings.enableVideoclips.hide = !!this.multiFocalDevice;
2712
+ this.storageSettings.settings.videoclipsDaysToPreload.hide = !!this.multiFocalDevice;
2713
+ this.storageSettings.settings.videoclipsRegularChecks.hide = !!this.multiFocalDevice;
2714
+ this.storageSettings.settings.loadVideoclips.hide = !!this.multiFocalDevice;
2715
+ this.storageSettings.settings.downloadVideoclipsLocally.hide = !!this.multiFocalDevice;
2716
+
2701
2717
  this.storageSettings.settings.videoclipsRegularChecks.defaultValue = this.isBattery ? 120 : 30;
2702
2718
 
2703
2719
  this.storageSettings.settings.batteryUpdateIntervalMinutes.hide = !this.isBattery;
@@ -2747,7 +2763,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
2747
2763
  this.intercom = new ReolinkBaichuanIntercom(this);
2748
2764
  }
2749
2765
 
2750
- if (hasPtz) {
2766
+ if (hasPtz && !this.multiFocalDevice) {
2751
2767
  const choices = (this.presets || []).map((preset: any) => preset.id + '=' + preset.name);
2752
2768
 
2753
2769
  this.storageSettings.settings.presets.choices = choices;