diff --git a/beets/library.py b/beets/library.py index 8fd1c8022..9be3a1602 100644 --- a/beets/library.py +++ b/beets/library.py @@ -1179,6 +1179,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, @@ -1235,6 +1236,7 @@ class Album(LibModel): "comp", "mb_albumid", "mb_albumartistid", + "mb_albumartistids", "albumtype", "albumtypes", "label", diff --git a/test/test_importer.py b/test/test_importer.py index 993362254..5070a058d 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -129,6 +129,11 @@ class NonAutotaggedImportTest(AsIsImporterMixin, ImportTestCase): self.run_asis_importer(delete=True) self.assertNotExists(os.path.join(self.import_dir, b"album")) + def test_album_mb_albumartistids(self): + self.run_asis_importer() + album = self.lib.albums()[0] + assert album.mb_albumartistids == album.items()[0].mb_albumartistids + @unittest.skipUnless(_common.HAVE_SYMLINK, "need symlinks") def test_import_link_arrives(self): self.run_asis_importer(link=True)