mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-12-20 10:21:22 +00:00
[streamSchedule] Fix: To not append game name if title contains it
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2613068156
commit
fcefe678ff
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue