diff --git a/lib/sc/track.go b/lib/sc/track.go index 452313e..9af5c90 100644 --- a/lib/sc/track.go +++ b/lib/sc/track.go @@ -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 } diff --git a/templates/track.templ b/templates/track.templ index 968d2ad..8f1d836 100644 --- a/templates/track.templ +++ b/templates/track.templ @@ -81,6 +81,7 @@ templ Track(t sc.Track, stream string) { }

{ strconv.FormatInt(t.Likes, 10) } likes

{ strconv.FormatInt(t.Played, 10) } plays

+

{ strconv.FormatInt(t.Reposted, 10) } reposts

Created: { t.CreatedAt }

Last modified: { t.LastModified }

if t.License != "" {