From 794591e7ee95b826bf000d2874c03104623152ed Mon Sep 17 00:00:00 2001 From: David Logie Date: Sat, 16 Sep 2023 18:56:08 +0100 Subject: Make `mb_albumartistids` available at the album level. --- beets/library.py | 2 ++ test/test_importer.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/beets/library.py b/beets/library.py index ccd431b85..f911eb77c 100644 --- a/beets/library.py +++ b/beets/library.py @@ -1095,6 +1095,7 @@ class Album(LibModel): 'comp': types.BOOLEAN, 'mb_albumid': types.STRING, 'mb_albumartistid': types.STRING, + 'mb_albumartistids': types.MULTI_VALUE_DSV, 'albumtype': types.STRING, 'albumtypes': types.SEMICOLON_SPACE_DSV, 'label': types.STRING, @@ -1153,6 +1154,7 @@ class Album(LibModel): 'albumtype', 'albumtypes', 'label', + 'mb_albumartistids', 'mb_releasegroupid', 'asin', 'catalognum', diff --git a/test/test_importer.py b/test/test_importer.py index 79c51b190..5780ee942 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -392,6 +392,12 @@ class NonAutotaggedImportTest(_common.TestCase, ImportHelper): self.importer.run() self.assertNotExists(os.path.join(self.import_dir, b'the_album')) + def test_album_mb_albumartistids(self): + self.importer.run() + album = self.lib.albums()[0] + self.assertEqual(album.mb_albumartistids, + album.items()[0].mb_albumartistids) + @unittest.skipUnless(_common.HAVE_SYMLINK, "need symlinks") def test_import_link_arrives(self): config['import']['link'] = True -- cgit v1.2.3