fix empty genre in track embeds

This commit is contained in:
Laptop
2024-08-27 20:07:03 +03:00
parent 0d9544ee39
commit 41e7a70b94

View File

@@ -416,7 +416,9 @@ func (t Track) FormatDescription() string {
}
desc += strconv.FormatInt(t.Likes, 10) + " ❤️ | " + strconv.FormatInt(t.Played, 10) + " ▶️"
desc += "\nGenre: " + t.Genre
if t.Genre != "" {
desc += "\nGenre: " + t.Genre
}
desc += "\nCreated: " + t.CreatedAt
desc += "\nLast modified: " + t.LastModified
if len(t.TagList) != 0 {