mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
Support using thumbnail for in progress detections
This commit is contained in:
parent
3b8180e670
commit
48d8520ee9
@ -193,7 +193,7 @@ export default function SearchThumbnailPlayer({
|
|||||||
src={
|
src={
|
||||||
searchResult.thumb_path
|
searchResult.thumb_path
|
||||||
? `${apiHost}${searchResult.thumb_path.replace("/media/frigate/", "")}`
|
? `${apiHost}${searchResult.thumb_path.replace("/media/frigate/", "")}`
|
||||||
: ""
|
: `${apiHost}api/events/${searchResult.id}/thumbnail.jpg`
|
||||||
}
|
}
|
||||||
loading={isSafari ? "eager" : "lazy"}
|
loading={isSafari ? "eager" : "lazy"}
|
||||||
onLoad={() => {
|
onLoad={() => {
|
||||||
|
|||||||
@ -56,6 +56,7 @@ export default function Search() {
|
|||||||
zones: searchSearchParams["zones"],
|
zones: searchSearchParams["zones"],
|
||||||
before: searchSearchParams["before"],
|
before: searchSearchParams["before"],
|
||||||
after: searchSearchParams["after"],
|
after: searchSearchParams["after"],
|
||||||
|
include_thumbnails: 0,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: null,
|
: null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user