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
|
@ -45,11 +45,11 @@ type Track struct {
|
|||
DiscNumber int
|
||||
Duration time.Duration
|
||||
ISRC string
|
||||
RecordingMbid mbtypes.MBID
|
||||
ReleaseMbid mbtypes.MBID
|
||||
ReleaseGroupMbid mbtypes.MBID
|
||||
ArtistMbids []mbtypes.MBID
|
||||
WorkMbids []mbtypes.MBID
|
||||
RecordingMBID mbtypes.MBID
|
||||
ReleaseMBID mbtypes.MBID
|
||||
ReleaseGroupMBID mbtypes.MBID
|
||||
ArtistMBIDs []mbtypes.MBID
|
||||
WorkMBIDs []mbtypes.MBID
|
||||
Tags []string
|
||||
AdditionalInfo AdditionalInfo
|
||||
}
|
||||
|
@ -63,20 +63,20 @@ func (t *Track) FillAdditionalInfo() {
|
|||
if t.AdditionalInfo == nil {
|
||||
t.AdditionalInfo = make(AdditionalInfo, 5)
|
||||
}
|
||||
if t.RecordingMbid != "" {
|
||||
t.AdditionalInfo["recording_mbid"] = t.RecordingMbid
|
||||
if t.RecordingMBID != "" {
|
||||
t.AdditionalInfo["recording_mbid"] = t.RecordingMBID
|
||||
}
|
||||
if t.ReleaseGroupMbid != "" {
|
||||
t.AdditionalInfo["release_group_mbid"] = t.ReleaseGroupMbid
|
||||
if t.ReleaseGroupMBID != "" {
|
||||
t.AdditionalInfo["release_group_mbid"] = t.ReleaseGroupMBID
|
||||
}
|
||||
if t.ReleaseMbid != "" {
|
||||
t.AdditionalInfo["release_mbid"] = t.ReleaseMbid
|
||||
if t.ReleaseMBID != "" {
|
||||
t.AdditionalInfo["release_mbid"] = t.ReleaseMBID
|
||||
}
|
||||
if len(t.ArtistMbids) > 0 {
|
||||
t.AdditionalInfo["artist_mbids"] = t.ArtistMbids
|
||||
if len(t.ArtistMBIDs) > 0 {
|
||||
t.AdditionalInfo["artist_mbids"] = t.ArtistMBIDs
|
||||
}
|
||||
if len(t.WorkMbids) > 0 {
|
||||
t.AdditionalInfo["work_mbids"] = t.WorkMbids
|
||||
if len(t.WorkMBIDs) > 0 {
|
||||
t.AdditionalInfo["work_mbids"] = t.WorkMBIDs
|
||||
}
|
||||
if t.ISRC != "" {
|
||||
t.AdditionalInfo["isrc"] = t.ISRC
|
||||
|
@ -111,7 +111,7 @@ type Love struct {
|
|||
Track
|
||||
Created time.Time
|
||||
UserName string
|
||||
RecordingMbid mbtypes.MBID
|
||||
RecordingMBID mbtypes.MBID
|
||||
RecordingMsid mbtypes.MBID
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue