display track reposts count

This commit is contained in:
Laptop
2024-10-29 14:00:48 +02:00
parent 33b28d4659
commit fe93815034
2 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ type Track struct {
Likes int64 `json:"likes_count"`
Permalink string `json:"permalink"`
Played int64 `json:"playback_count"`
Reposted int64 `json:"reposts_count"`
TagList string `json:"tag_list"`
Title string `json:"title"`
ID string `json:"urn"`
@@ -327,7 +328,7 @@ func (t Track) FormatDescription() string {
desc += "\n\n"
}
desc += strconv.FormatInt(t.Likes, 10) + " ❤️ | " + strconv.FormatInt(t.Played, 10) + " ▶️"
desc += strconv.FormatInt(t.Likes, 10) + " ❤️ | " + strconv.FormatInt(t.Played, 10) + " ▶️ | " + strconv.FormatInt(t.Reposted, 10) + " 🔁"
if t.Genre != "" {
desc += "\nGenre: " + t.Genre
}