summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Logie <djl@mksh.org>2023-09-16 18:56:08 +0100
committerDavid Logie <djl@mksh.org>2023-09-24 15:06:28 +0100
commit794591e7ee95b826bf000d2874c03104623152ed (patch)
tree37b2f691589e9e7c2d54b3a29cad7679b01bacca
parentc15ccb16bf3bceadfdf50268818dd64f04de25f8 (diff)
Make `mb_albumartistids` available at the album level.mb_albumartistids-album
-rw-r--r--beets/library.py2
-rw-r--r--test/test_importer.py6
2 files changed, 8 insertions, 0 deletions
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