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
|
@ -141,16 +141,16 @@ out:
|
|||
TrackName: scrobble.Name,
|
||||
ArtistNames: []string{},
|
||||
ReleaseName: scrobble.Album.Name,
|
||||
RecordingMbid: mbtypes.MBID(scrobble.Mbid),
|
||||
ArtistMbids: []mbtypes.MBID{},
|
||||
ReleaseMbid: mbtypes.MBID(scrobble.Album.Mbid),
|
||||
RecordingMBID: mbtypes.MBID(scrobble.Mbid),
|
||||
ArtistMBIDs: []mbtypes.MBID{},
|
||||
ReleaseMBID: mbtypes.MBID(scrobble.Album.Mbid),
|
||||
},
|
||||
}
|
||||
if scrobble.Artist.Name != "" {
|
||||
listen.Track.ArtistNames = []string{scrobble.Artist.Name}
|
||||
}
|
||||
if scrobble.Artist.Mbid != "" {
|
||||
listen.Track.ArtistMbids = []mbtypes.MBID{mbtypes.MBID(scrobble.Artist.Mbid)}
|
||||
listen.Track.ArtistMBIDs = []mbtypes.MBID{mbtypes.MBID(scrobble.Artist.Mbid)}
|
||||
}
|
||||
listens = append(listens, listen)
|
||||
} else {
|
||||
|
@ -204,8 +204,8 @@ func (b *LastfmApiBackend) ImportListens(export models.ListensResult, importResu
|
|||
if l.TrackNumber > 0 {
|
||||
trackNumbers = append(trackNumbers, strconv.Itoa(l.TrackNumber))
|
||||
}
|
||||
if l.RecordingMbid != "" {
|
||||
mbids = append(mbids, string(l.RecordingMbid))
|
||||
if l.RecordingMBID != "" {
|
||||
mbids = append(mbids, string(l.RecordingMBID))
|
||||
}
|
||||
// if l.ReleaseArtist != "" {
|
||||
// albumArtists = append(albums, l.ReleaseArtist)
|
||||
|
@ -295,12 +295,12 @@ out:
|
|||
love := models.Love{
|
||||
Created: time.Unix(timestamp, 0),
|
||||
UserName: result.User,
|
||||
RecordingMbid: mbtypes.MBID(track.Mbid),
|
||||
RecordingMBID: mbtypes.MBID(track.Mbid),
|
||||
Track: models.Track{
|
||||
TrackName: track.Name,
|
||||
ArtistNames: []string{track.Artist.Name},
|
||||
RecordingMbid: mbtypes.MBID(track.Mbid),
|
||||
ArtistMbids: []mbtypes.MBID{mbtypes.MBID(track.Artist.Mbid)},
|
||||
RecordingMBID: mbtypes.MBID(track.Mbid),
|
||||
ArtistMBIDs: []mbtypes.MBID{mbtypes.MBID(track.Artist.Mbid)},
|
||||
AdditionalInfo: models.AdditionalInfo{
|
||||
"lastfm_url": track.Url,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue