mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
subsonic: include subsonic_id as additional metadata
This commit is contained in:
parent
fee1eba080
commit
1aa7b61649
2 changed files with 11 additions and 7 deletions
|
@ -100,13 +100,15 @@ func SongAsLove(song subsonic.Child, username string) models.Love {
|
|||
UserName: username,
|
||||
Created: song.Starred,
|
||||
Track: models.Track{
|
||||
TrackName: song.Title,
|
||||
ReleaseName: song.Album,
|
||||
ArtistNames: []string{song.Artist},
|
||||
TrackNumber: song.Track,
|
||||
DiscNumber: song.DiscNumber,
|
||||
AdditionalInfo: map[string]any{},
|
||||
Duration: time.Duration(song.Duration * int(time.Second)),
|
||||
TrackName: song.Title,
|
||||
ReleaseName: song.Album,
|
||||
ArtistNames: []string{song.Artist},
|
||||
TrackNumber: song.Track,
|
||||
DiscNumber: song.DiscNumber,
|
||||
AdditionalInfo: map[string]any{
|
||||
"subsonic_id": song.ID,
|
||||
},
|
||||
Duration: time.Duration(song.Duration * int(time.Second)),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue