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,9 +380,14 @@ class RecordingExporter(threading.Thread):
|
||||
if label and label not in labels:
|
||||
labels.append(label)
|
||||
|
||||
title = str(review.severity).capitalize()
|
||||
if labels:
|
||||
title = f"{title}: {', '.join(labels)}"
|
||||
metadata = data.get("metadata") or {}
|
||||
title = metadata.get("title")
|
||||
|
||||
if not title:
|
||||
title = str(review.severity).capitalize()
|
||||
|
||||
if labels:
|
||||
title = f"{title}: {', '.join(labels)}"
|
||||
|
||||
chapter_blocks.append(
|
||||
"[CHAPTER]\n"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user