mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-09 18:07:03 +02:00
jspf: write duration to exported JSPF
This commit is contained in:
parent
588a6cf96f
commit
443734e4c7
2 changed files with 2 additions and 1 deletions
|
@ -150,6 +150,7 @@ func trackAsTrack(t models.Track) jspf.Track {
|
|||
Album: t.ReleaseName,
|
||||
Creator: t.ArtistName(),
|
||||
TrackNum: t.TrackNumber,
|
||||
Duration: t.Duration.Milliseconds(),
|
||||
Extension: map[string]any{},
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ type Track struct {
|
|||
Info string `json:"info,omitempty"`
|
||||
Album string `json:"album,omitempty"`
|
||||
TrackNum int `json:"trackNum,omitempty"`
|
||||
Duration int `json:"duration,omitempty"`
|
||||
Duration int64 `json:"duration,omitempty"`
|
||||
Links []Link `json:"link,omitempty"`
|
||||
Meta []Meta `json:"meta,omitempty"`
|
||||
Extension map[string]any `json:"extension,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue