snapshot: promote to default plugin

This commit is contained in:
Koushik Dutta
2022-11-13 18:42:26 -08:00
parent 7195d97bf2
commit 93c18cca70
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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;
}