mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 16:40:30 +01:00
snapshot: promote to default plugin
This commit is contained in:
4
plugins/snapshot/package-lock.json
generated
4
plugins/snapshot/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/snapshot",
|
||||
"version": "0.0.37",
|
||||
"version": "0.0.38",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/snapshot",
|
||||
"version": "0.0.37",
|
||||
"version": "0.0.38",
|
||||
"dependencies": {
|
||||
"@koush/axios-digest-auth": "^0.8.5",
|
||||
"@types/node": "^16.6.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/snapshot",
|
||||
"version": "0.0.37",
|
||||
"version": "0.0.38",
|
||||
"description": "Snapshot Plugin for Scrypted",
|
||||
"scripts": {
|
||||
"scrypted-setup-project": "scrypted-setup-project",
|
||||
|
||||
@@ -575,7 +575,7 @@ class SnapshotPlugin extends AutoenableMixinProvider implements MixinProvider, B
|
||||
const { type, interfaces } = device;
|
||||
// auto enable this on VideoCameras that do not have snapshot capability.
|
||||
if ((type === ScryptedDeviceType.Camera || type === ScryptedDeviceType.Doorbell)
|
||||
&& interfaces.includes(ScryptedInterface.VideoCamera) && !interfaces.includes(ScryptedInterface.Camera))
|
||||
&& interfaces.includes(ScryptedInterface.VideoCamera))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user