mirror of
https://git.sr.ht/~phw/scotty
synced 2025-06-05 12: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
|
@ -258,7 +258,7 @@ func (t Track) AsTrack() models.Track {
|
|||
TrackName: t.Name,
|
||||
ReleaseName: t.Album.Name,
|
||||
ArtistNames: make([]string, 0, len(t.Artists)),
|
||||
Duration: time.Duration(t.DurationMs * int(time.Millisecond)),
|
||||
Duration: time.Duration(t.DurationMs) * time.Millisecond,
|
||||
TrackNumber: t.TrackNumber,
|
||||
DiscNumber: t.DiscNumber,
|
||||
ISRC: t.ExternalIDs.ISRC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue