From fcefe678ff2753500b75439e3d99acaa5106d3c2 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 7 Dec 2021 01:24:28 +0100 Subject: [PATCH] [streamSchedule] Fix: To not append game name if title contains it Signed-off-by: Knut Ahlers --- mod_streamSchedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_streamSchedule.go b/mod_streamSchedule.go index 5c8542f..ce36607 100644 --- a/mod_streamSchedule.go +++ b/mod_streamSchedule.go @@ -113,7 +113,7 @@ func (m modStreamSchedule) cronUpdateSchedule() { for _, seg := range data.Data.Segments { title := seg.Title - if seg.Category != nil && seg.Category.Name != seg.Title { + if seg.Category != nil && !strings.Contains(seg.Title, seg.Category.Name) { title = fmt.Sprintf("%s (%s)", seg.Title, seg.Category.Name) }