Skip to content

Commit 8ed5f32

Browse files
authored
fix: remove subLabel
1 parent cf051d8 commit 8ed5f32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/frigate/frigate.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type EventsStruct []struct {
3939
PlusID interface{} `json:"plus_id"`
4040
RetainIndefinitely bool `json:"retain_indefinitely"`
4141
StartTime float64 `json:"start_time"`
42-
SubLabel []any `json:"sub_label"`
42+
// SubLabel []any `json:"sub_label"`
4343
Thumbnail string `json:"thumbnail"`
4444
TopScore interface{} `json:"top_score"`
4545
Zones []any `json:"zones"`
@@ -65,7 +65,7 @@ type EventStruct struct {
6565
PlusID interface{} `json:"plus_id"`
6666
RetainIndefinitely bool `json:"retain_indefinitely"`
6767
StartTime float64 `json:"start_time"`
68-
SubLabel []any `json:"sub_label"`
68+
// SubLabel []any `json:"sub_label"`
6969
Thumbnail string `json:"thumbnail"`
7070
TopScore interface{} `json:"top_score"`
7171
Zones []any `json:"zones"`
@@ -225,9 +225,9 @@ func SendMessageEvent(FrigateEvent EventStruct, bot *tgbotapi.BotAPI) {
225225
text := "*Event*\n"
226226
text += "┣*Camera*\n┗ #" + NormalizeTagText(FrigateEvent.Camera) + "\n"
227227
text += "┣*Label*\n┗ #" + NormalizeTagText(FrigateEvent.Label) + "\n"
228-
if FrigateEvent.SubLabel != nil {
229-
text += "┣*SubLabel*\n┗ #" + strings.Join(GetTagList(FrigateEvent.SubLabel), ", #") + "\n"
230-
}
228+
// if FrigateEvent.SubLabel != nil {
229+
// text += "┣*SubLabel*\n┗ #" + strings.Join(GetTagList(FrigateEvent.SubLabel), ", #") + "\n"
230+
// }
231231
t_start := time.Unix(int64(FrigateEvent.StartTime), 0)
232232
text += fmt.Sprintf("┣*Start time*\n┗ `%s", t_start) + "`\n"
233233
if FrigateEvent.EndTime == 0 {

0 commit comments

Comments
 (0)