mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-14 16:01:13 +03:00
Use title for metadata chapters
This commit is contained in:
parent
da1671b6eb
commit
4006975227
@ -380,7 +380,12 @@ class RecordingExporter(threading.Thread):
|
|||||||
if label and label not in labels:
|
if label and label not in labels:
|
||||||
labels.append(label)
|
labels.append(label)
|
||||||
|
|
||||||
|
metadata = data.get("metadata") or {}
|
||||||
|
title = metadata.get("title")
|
||||||
|
|
||||||
|
if not title:
|
||||||
title = str(review.severity).capitalize()
|
title = str(review.severity).capitalize()
|
||||||
|
|
||||||
if labels:
|
if labels:
|
||||||
title = f"{title}: {', '.join(labels)}"
|
title = f"{title}: {', '.join(labels)}"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user