mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 16:52:18 +00:00
unifi: dont sync isAdoptedByOther devices
This commit is contained in:
4
plugins/unifi-protect/package-lock.json
generated
4
plugins/unifi-protect/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.27",
|
||||
"version": "0.0.29",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.27",
|
||||
"version": "0.0.29",
|
||||
"license": "Apache",
|
||||
"dependencies": {
|
||||
"@types/ws": "^7.4.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.27",
|
||||
"version": "0.0.29",
|
||||
"description": "Unifi Protect Plugin for Scrypted",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache",
|
||||
|
||||
@@ -189,6 +189,11 @@ class UnifiProtect extends ScryptedDeviceBase implements Settings, DeviceProvide
|
||||
}
|
||||
|
||||
for (let camera of this.api.Cameras) {
|
||||
if (camera.isAdoptedByOther) {
|
||||
this.console.log('skipping camera that is adopted by another nvr', camera.id, camera.name);
|
||||
continue;
|
||||
}
|
||||
|
||||
let needUpdate = false;
|
||||
for (const channel of camera.channels) {
|
||||
if (channel.idrInterval !== 4 || !channel.isRtspEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user