mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Write acronym MBID all uppercase
This commit is contained in:
parent
8fff19ceac
commit
ad1644672c
17 changed files with 149 additions and 149 deletions
|
@ -176,7 +176,7 @@ func (f FavoriteTrack) AsLove() models.Love {
|
|||
track := f.Track.AsTrack()
|
||||
love := models.Love{
|
||||
UserName: f.User.UserName,
|
||||
RecordingMbid: track.RecordingMbid,
|
||||
RecordingMBID: track.RecordingMBID,
|
||||
Track: track,
|
||||
}
|
||||
|
||||
|
@ -189,16 +189,16 @@ func (f FavoriteTrack) AsLove() models.Love {
|
|||
}
|
||||
|
||||
func (t Track) AsTrack() models.Track {
|
||||
recordingMbid := mbtypes.MBID(t.RecordingMbid)
|
||||
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: recordingMBID,
|
||||
ReleaseMBID: mbtypes.MBID(t.Album.ReleaseMBID),
|
||||
ArtistMBIDs: []mbtypes.MBID{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