Minor formatting changes to playlist notification

This commit is contained in:
aditya-K2
2023-04-29 03:52:44 +05:30
parent 393b3d469f
commit 5f3d4e6383

View File

@@ -109,7 +109,11 @@ func addToPlaylist(tracks []spotify.ID) {
SendNotification(aerr.Error())
return
} else {
SendNotification(fmt.Sprintf("Added %d tracks to %s", len(tracks), sp.Name))
s := ""
if len(tracks) > 1 {
s = "s"
}
SendNotification(fmt.Sprintf("Added %d track%s to %s", len(tracks), s, sp.Name))
}
})
}