mirror of
https://git.sr.ht/~phw/scotty
synced 2025-07-16 05:03:37 +02:00
Added Listen.Skipped attribute
This will help implementing similar functionality for other formats that make this distinction.
This commit is contained in:
parent
543b3ced27
commit
d162702d5d
3 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue