mirror of
https://git.sr.ht/~phw/scotty
synced 2025-06-06 04:58:33 +02:00
Minor code cleanup when creation time.Duration
This commit is contained in:
parent
78a05e9f54
commit
0115eca1c6
5 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ func (i HistoryItem) AsListen() models.Listen {
|
|||
AdditionalInfo: models.AdditionalInfo{},
|
||||
},
|
||||
ListenedAt: i.Timestamp,
|
||||
PlaybackDuration: time.Duration(i.MillisecondsPlayed * int(time.Millisecond)),
|
||||
PlaybackDuration: time.Duration(i.MillisecondsPlayed) * time.Millisecond,
|
||||
UserName: i.UserName,
|
||||
}
|
||||
if trackURL, err := formatSpotifyUri(i.SpotifyTrackUri); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue