mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 09:02:15 +03:00
Miscellaneous fixes (#23155)
* Change order * Improve title * add loading spinner to exports * Simplify JSON since not all providers see or use this the same * Add fields to primary prompt * Adjust centering for no overrides * Use GenAI title for exports when available * detect form-root objects by field path instead of schema identity * add bosnian * Strip v1 if included in url * prevent fast clicks in video controls from selecting text * Use title for metadata chapters --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
co-authored by
Josh Hawkins
parent
0d4f1ec369
commit
c4b74c9148
@@ -79,10 +79,15 @@ export default function ReviewCard({
|
||||
? event.end_time + REVIEW_PADDING
|
||||
: Date.now() / 1000;
|
||||
|
||||
const genAiTitle = event.data.metadata?.title?.trim();
|
||||
|
||||
axios
|
||||
.post(
|
||||
`export/${event.camera}/start/${event.start_time - REVIEW_PADDING}/end/${endTime}`,
|
||||
{ playback: "realtime" },
|
||||
{
|
||||
playback: "realtime",
|
||||
...(genAiTitle ? { name: genAiTitle } : {}),
|
||||
},
|
||||
)
|
||||
.then((response) => {
|
||||
if (response.status < 300) {
|
||||
|
||||
Reference in New Issue
Block a user