mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
More conversion to mbtypes.MBID
This commit is contained in:
parent
13eb8342ab
commit
0d9bc74bc0
8 changed files with 82 additions and 81 deletions
|
@ -189,16 +189,15 @@ func (f FavoriteTrack) AsLove() models.Love {
|
|||
}
|
||||
|
||||
func (t Track) AsTrack() models.Track {
|
||||
recordingMBID := mbtypes.MBID(t.RecordingMBID)
|
||||
track := models.Track{
|
||||
TrackName: t.Title,
|
||||
ReleaseName: t.Album.Title,
|
||||
ArtistNames: []string{t.Artist.Name},
|
||||
TrackNumber: t.Position,
|
||||
DiscNumber: t.DiscNumber,
|
||||
RecordingMBID: recordingMBID,
|
||||
ReleaseMBID: mbtypes.MBID(t.Album.ReleaseMBID),
|
||||
ArtistMBIDs: []mbtypes.MBID{mbtypes.MBID(t.Artist.ArtistMBID)},
|
||||
RecordingMBID: t.RecordingMBID,
|
||||
ReleaseMBID: t.Album.ReleaseMBID,
|
||||
ArtistMBIDs: []mbtypes.MBID{t.Artist.ArtistMBID},
|
||||
Tags: t.Tags,
|
||||
AdditionalInfo: map[string]any{
|
||||
"media_player": FunkwhaleClientName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue