Make mb_albumartistids available at the album level.

This commit is contained in:
David Logie 2025-05-22 02:37:41 +01:00 committed by Šarūnas Nejus
parent 9584216209
commit 43b20f2850
2 changed files with 7 additions and 0 deletions

View file

@ -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",

View file

@ -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)