Fix #716: add "Last played" tracklist columnn

This commit is contained in:
Drew Weymouth
2025-09-25 09:37:14 -07:00
parent 4c1a95e851
commit 06b57d27d7
6 changed files with 120 additions and 26 deletions
@@ -430,6 +430,8 @@ func toTrack(ch *jellyfin.Song) *mediaprovider.Track {
coverArtID = ch.Id
}
lastPlayed, _ := time.Parse(time.RFC3339Nano, ch.UserData.LastPlayedDate)
t := &mediaprovider.Track{
ID: ch.Id,
CoverArtID: coverArtID,
@@ -447,6 +449,7 @@ func toTrack(ch *jellyfin.Song) *mediaprovider.Track {
Rating: ch.UserData.Rating,
Favorite: ch.UserData.IsFavorite,
PlayCount: ch.UserData.PlayCount,
LastPlayed: lastPlayed,
}
if len(ch.MediaSources) > 0 {
t.FilePath = ch.MediaSources[0].Path