commit 752eb5c

delthas  ·  2024-08-14 12:58:49 +0000 UTC
parent 54bf809
NP: Do not show empty artist names
1 files changed,  +1, -1
+1, -1
1@@ -1099,7 +1099,7 @@ func getSong() (string, error) {
2 
3 	var sb strings.Builder
4 	fmt.Fprintf(&sb, "\x02%s\x02", info.Title)
5-	if len(info.Artists) > 0 {
6+	if len(info.Artists) > 0 && info.Artists[0] != "" {
7 		fmt.Fprintf(&sb, " by \x02%s\x02", info.Artists[0])
8 	}
9 	if info.Album != "" {