mirror of
https://github.com/koush/scrypted.git
synced 2026-09-21 03:00:40 +01:00
rtsp: fixup snapshot override url not removing Camera interface
This commit is contained in:
4
plugins/rtsp/package-lock.json
generated
4
plugins/rtsp/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user