mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Fix albumtypes plugin and its tests
The new database type DelimitedString does list to string and vice versa conversions itself.
This commit is contained in:
parent
27218a9490
commit
93fa19f493
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ class AlbumTypesPlugin(BeetsPlugin):
|
|||
bracket_r = ''
|
||||
|
||||
res = ''
|
||||
albumtypes = item.albumtypes.split('; ')
|
||||
albumtypes = item.albumtypes
|
||||
is_va = item.mb_albumartistid == VARIOUS_ARTISTS_ID
|
||||
for type in types:
|
||||
if type[0] in albumtypes and type[1]:
|
||||
|
|
|
|||
|
|
@ -106,6 +106,6 @@ class AlbumTypesPluginTest(unittest.TestCase, TestHelper):
|
|||
|
||||
def _create_album(self, album_types: [str], artist_id: str = 0):
|
||||
return self.add_album(
|
||||
albumtypes='; '.join(album_types),
|
||||
albumtypes=album_types,
|
||||
mb_albumartistid=artist_id
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue