mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-02 06:37:04 +02:00
Uppercase acronyms (ISRC / JSPF)
This commit is contained in:
parent
409acccebe
commit
36cc41d05d
14 changed files with 28 additions and 28 deletions
|
@ -236,7 +236,7 @@ func (t Track) AsTrack() models.Track {
|
|||
RecordingMbid: models.MBID(t.RecordingMbid()),
|
||||
ReleaseMbid: models.MBID(t.ReleaseMbid()),
|
||||
ReleaseGroupMbid: models.MBID(t.ReleaseGroupMbid()),
|
||||
Isrc: t.Isrc(),
|
||||
ISRC: t.ISRC(),
|
||||
AdditionalInfo: t.AdditionalInfo,
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ func TestListenBrainzListenAsListen(t *testing.T) {
|
|||
assert.Equal(t, models.MBID("c0a1fc94-5f04-4a5f-bc09-e5de0c49cd12"), listen.RecordingMbid)
|
||||
assert.Equal(t, models.MBID("d7f22677-9803-4d21-ba42-081b633a6f68"), listen.ReleaseMbid)
|
||||
assert.Equal(t, models.MBID("80aca1ee-aa51-41be-9f75-024710d92ff4"), listen.ReleaseGroupMbid)
|
||||
assert.Equal(t, "DES561620801", listen.Isrc)
|
||||
assert.Equal(t, "DES561620801", listen.ISRC)
|
||||
assert.Equal(t, lbListen.TrackMetadata.AdditionalInfo["foo"], listen.AdditionalInfo["foo"])
|
||||
}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ func (t Track) DiscNumber() int {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (t Track) Isrc() string {
|
||||
func (t Track) ISRC() string {
|
||||
return tryGetValueOrEmpty[string](t.AdditionalInfo, "isrc")
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ func TestTrackIsrc(t *testing.T) {
|
|||
"isrc": expected,
|
||||
},
|
||||
}
|
||||
assert.Equal(t, expected, track.Isrc())
|
||||
assert.Equal(t, expected, track.ISRC())
|
||||
}
|
||||
|
||||
func TestTrackRecordingMbid(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue