Added Listen.Skipped attribute

This will help implementing similar functionality for other formats
that make this distinction.
This commit is contained in:
Philipp Wolfer 2025-07-14 15:13:38 +02:00
parent 543b3ced27
commit d162702d5d
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
3 changed files with 7 additions and 6 deletions

View file

@ -91,6 +91,7 @@ func (i HistoryItem) AsListen() models.Listen {
ListenedAt: i.Timestamp,
PlaybackDuration: time.Duration(i.MillisecondsPlayed) * time.Millisecond,
UserName: i.UserName,
Skipped: i.Skipped,
}
if trackURL, err := formatSpotifyUri(i.SpotifyTrackUri); err != nil {
listen.AdditionalInfo["spotify_id"] = trackURL