diff --git a/custom_components/frigate/media_source.py b/custom_components/frigate/media_source.py index a73e4dc1..11b1c0de 100644 --- a/custom_components/frigate/media_source.py +++ b/custom_components/frigate/media_source.py @@ -862,7 +862,7 @@ def _build_event_response( ), media_class=identifier.media_class, media_content_type=identifier.media_type, - title=f"{dt.datetime.fromtimestamp(event['start_time'], DEFAULT_TIME_ZONE).strftime(DATE_STR_FORMAT)} [{duration}s, {event['label'].capitalize()} {int(event['top_score']*100)}%]", + title=f"{dt.datetime.fromtimestamp(event['start_time'], DEFAULT_TIME_ZONE).strftime(DATE_STR_FORMAT)} [{duration}s, {event['label'].capitalize()} {int(event['data']['top_score']*100)}%]", can_play=identifier.media_type == MEDIA_TYPE_VIDEO, can_expand=False, thumbnail=f"/api/frigate/{identifier.frigate_instance_id}/thumbnail/{event['id']}",