Use title for metadata chapters

This commit is contained in:
Nicolas Mowen 2026-05-10 09:44:42 -06:00
parent da1671b6eb
commit 4006975227

View File

@ -380,9 +380,14 @@ class RecordingExporter(threading.Thread):
if label and label not in labels: if label and label not in labels:
labels.append(label) labels.append(label)
title = str(review.severity).capitalize() metadata = data.get("metadata") or {}
if labels: title = metadata.get("title")
title = f"{title}: {', '.join(labels)}"
if not title:
title = str(review.severity).capitalize()
if labels:
title = f"{title}: {', '.join(labels)}"
chapter_blocks.append( chapter_blocks.append(
"[CHAPTER]\n" "[CHAPTER]\n"