@apocaliss92/scrypted-reolink-native 0.1.40 → 0.1.41
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/main.nodejs.js +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/nvr.ts +2 -2
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/nvr.ts
CHANGED
|
@@ -533,9 +533,9 @@ export class ReolinkNativeNvrDevice extends BaseBaichuanClass implements Setting
|
|
|
533
533
|
|
|
534
534
|
this.channelToNativeIdMap.set(channel, nativeId);
|
|
535
535
|
|
|
536
|
-
const allNativeIds = sdk.deviceManager.getNativeIds();
|
|
536
|
+
const allNativeIds = sdk.deviceManager.getNativeIds().filter(nid => !!nid);
|
|
537
537
|
|
|
538
|
-
if (allNativeIds.some(
|
|
538
|
+
if (allNativeIds.some(nid => nid.includes(uid)) ||
|
|
539
539
|
allNativeIds.includes(nativeId)) {
|
|
540
540
|
continue;
|
|
541
541
|
}
|