Skip to content

Commit f65652e

Browse files
committed
autotag: fix list fields
1 parent 435703c commit f65652e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

beets/autotag/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,21 @@ def ensure_first_value(single_field: str, list_field: str) -> None:
180180
if hasattr(m, "mb_albumartistids"):
181181
ensure_first_value("mb_albumartistid", "mb_albumartistids")
182182

183+
if hasattr(m, "artists_sort"):
184+
ensure_first_value("artist_sort", "artists_sort")
185+
186+
if hasattr(m, "artists_credit"):
187+
ensure_first_value("artist_credit", "artists_credit")
188+
189+
if hasattr(m, "albumartists_credit"):
190+
ensure_first_value("albumartist_credit", "albumartists_credit")
191+
192+
if hasattr(m, "artists"):
193+
ensure_first_value("artist", "artists")
194+
195+
if hasattr(m, "albumartists_sort"):
196+
ensure_first_value("albumartist_sort", "albumartists_sort")
197+
183198

184199
def apply_item_metadata(item: Item, track_info: TrackInfo):
185200
"""Set an item's metadata from its matched TrackInfo object."""

0 commit comments

Comments
 (0)