mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-16 10:09:28 +02:00
Fixed Maloja AdditionalInfo creation
This commit is contained in:
parent
0bee8561e3
commit
6047a9b274
1 changed files with 5 additions and 4 deletions
|
@ -81,10 +81,11 @@ func (l Listen) FromMaloja(mlListen maloja.Listen) Listen {
|
|||
ListenedAt: time.Unix(mlListen.ListenedAt, 0),
|
||||
PlaybackDuration: time.Duration(mlListen.Duration * int64(time.Second)),
|
||||
Track: Track{
|
||||
TrackName: track.Title,
|
||||
ReleaseName: track.Album.Title,
|
||||
ArtistNames: track.Artists,
|
||||
Duration: time.Duration(track.Length * int64(time.Second)),
|
||||
TrackName: track.Title,
|
||||
ReleaseName: track.Album.Title,
|
||||
ArtistNames: track.Artists,
|
||||
Duration: time.Duration(track.Length * int64(time.Second)),
|
||||
AdditionalInfo: map[string]any{},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue