From 1cd87209be91c1daa6304525520a36dec8bfec80 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 11 Feb 2024 09:11:51 +0100 Subject: Invert the order of titles --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index dfff28f..592a35d 100644 --- a/main.go +++ b/main.go @@ -67,14 +67,13 @@ func getMeta(name string) (*meta, error) { } titles := v.Data[0].Titles - parts := []string{} - if titles.Tertiary != nil { - parts = append(parts, *titles.Tertiary) - } + parts := []string{titles.Primary} if titles.Secondary != nil { parts = append(parts, *titles.Secondary) } - parts = append(parts, titles.Primary) + if titles.Tertiary != nil { + parts = append(parts, *titles.Tertiary) + } return &meta{timeout: 5000, title: strings.Join(parts, " - ")}, nil } -- cgit v1.2.3-70-g09d2