🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
fix(scanner): exclude Vorbis VERSION from albumversion tag mapping (#5194)
Tom Boucher356b0716b69b
diff --git a/model/metadata/persistent_ids_test.go b/model/metadata/persistent_ids_test.goindex ad81eaa53..9f1dacbd4 100644--- a/model/metadata/persistent_ids_test.go+++ b/model/metadata/persistent_ids_test.go@@ -65,7 +65,7 @@ var _ = Describe("getPID", func() {Context("calculated attributes", func() {BeforeEach(func() {DeferCleanup(configtest.SetupConfig())- conf.Server.PID.Album = "musicbrainz_albumid|albumartistid,album,version,releasedate"+ conf.Server.PID.Album = "musicbrainz_albumid|albumartistid,album,albumversion,releasedate"})When("field is title", func() {It("should return the pid", func() {@@ -88,13 +88,13 @@ var _ = Describe("getPID", func() {It("should return the pid", func() {spec := "albumid|title"md.tags = map[model.TagName][]string{- "title": {"title"},- "album": {"album name"},- "version": {"version"},- "releasedate": {"2021-01-01"},+ "title": {"title"},+ "album": {"album name"},+ "albumversion": {"deluxe edition"},+ "releasedate": {"2021-01-01"},}mf.AlbumArtist = "Album Artist"- Expect(getPID(mf, md, spec, false)).To(Equal("(((album artist)\\album name\\version\\2021-01-01))"))+ Expect(getPID(mf, md, spec, false)).To(Equal("(((album artist)\\album name\\deluxe edition\\2021-01-01))"))})})When("field is albumartistid", func() {diff --git a/resources/mappings.yaml b/resources/mappings.yamlindex d1da5c620..19ba0b090 100644--- a/resources/mappings.yaml+++ b/resources/mappings.yaml@@ -81,7 +81,7 @@ main:albumsort:aliases: [ tsoa, albumsort, soal, wm/albumsortorder ]albumversion:- aliases: [albumversion, musicbrainz_albumcomment, musicbrainz album comment, version]+ aliases: [albumversion, musicbrainz_albumcomment, musicbrainz album comment]album: truegenre:aliases: [ tcon, genre, ©gen, wm/genre, ignr ]