diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-02-11 09:11:51 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-02-11 09:11:51 +0100 |
commit | 1cd87209be91c1daa6304525520a36dec8bfec80 (patch) | |
tree | 382e23ecd3f6737be6a3364f5a05affbf5e5ad8c | |
parent | 8a087dea4a923254b564d992d15080b11494acf7 (diff) | |
download | bbc-on-ice-1cd87209be91c1daa6304525520a36dec8bfec80.tar.gz bbc-on-ice-1cd87209be91c1daa6304525520a36dec8bfec80.tar.xz bbc-on-ice-1cd87209be91c1daa6304525520a36dec8bfec80.zip |
Invert the order of titles
-rw-r--r-- | main.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 } |