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
|
@ -121,7 +121,7 @@ func SongAsLove(song subsonic.Child, username string) models.Love {
|
|||
AdditionalInfo: map[string]any{
|
||||
"subsonic_id": song.ID,
|
||||
},
|
||||
Duration: time.Duration(song.Duration * int(time.Second)),
|
||||
Duration: time.Duration(song.Duration) * time.Second,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue