fix: Reolink metadata should not reject media with labels (#1900)

- Related to: #1870
This commit is contained in:
Dermot Duffy
2025-02-17 20:13:21 -08:00
committed by GitHub
parent c66c3ec919
commit bb147a45fd
6 changed files with 128 additions and 33 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class BrowseMediaEventViewMedia extends ViewMedia implements EventViewMedia {
return this._browseMedia.thumbnail;
}
public getWhat(): string[] | null {
return null;
return this._browseMedia._metadata?.what ?? null;
}
public getScore(): number | null {
return null;
+1
View File
@@ -2,4 +2,5 @@ export interface BrowseMediaMetadata {
cameraID: string;
startDate: Date;
endDate: Date;
what?: string[];
}