From eaefb9852df7d5f6868b445c7099718efe6d5929 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 1 Oct 2021 14:32:33 -0700 Subject: [PATCH] rtsp: fixup snapshot override url not removing Camera interface --- plugins/rtsp/package-lock.json | 4 ++-- plugins/rtsp/package.json | 2 +- plugins/rtsp/src/rtsp.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/rtsp/package-lock.json b/plugins/rtsp/package-lock.json index c9e83b086..f8b87b167 100644 --- a/plugins/rtsp/package-lock.json +++ b/plugins/rtsp/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/rtsp", - "version": "0.0.27", + "version": "0.0.28", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/rtsp", - "version": "0.0.27", + "version": "0.0.28", "license": "Apache", "dependencies": { "@koush/axios-digest-auth": "^0.7.2", diff --git a/plugins/rtsp/package.json b/plugins/rtsp/package.json index cff422516..eaa470ced 100644 --- a/plugins/rtsp/package.json +++ b/plugins/rtsp/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/rtsp", - "version": "0.0.27", + "version": "0.0.28", "description": "RTSP Cameras and Streams Plugin for Scrypted", "author": "Scrypted", "license": "Apache", diff --git a/plugins/rtsp/src/rtsp.ts b/plugins/rtsp/src/rtsp.ts index 02399a776..38473fd41 100644 --- a/plugins/rtsp/src/rtsp.ts +++ b/plugins/rtsp/src/rtsp.ts @@ -149,9 +149,9 @@ export class RtspCamera extends ScryptedDeviceBase implements Camera, VideoCamer this.snapshotAuth = undefined; if (key === 'snapshotUrl') { - const interfaces = this.providedInterfaces; + let interfaces = this.providedInterfaces; if (!value) - interfaces.filter(iface => iface !== ScryptedInterface.Camera) + interfaces = interfaces.filter(iface => iface !== ScryptedInterface.Camera) else interfaces.push(ScryptedInterface.Camera);