mirror of
https://github.com/beetbox/beets.git
synced 2026-01-14 12:12:23 +01:00
autotag: fix list fields
This commit is contained in:
parent
fb50fdd829
commit
385dd79cc6
1 changed files with 15 additions and 0 deletions
|
|
@ -180,6 +180,21 @@ def correct_list_fields(m: LibModel) -> None:
|
|||
if hasattr(m, "mb_albumartistids"):
|
||||
ensure_first_value("mb_albumartistid", "mb_albumartistids")
|
||||
|
||||
if hasattr(m, "artists_sort"):
|
||||
ensure_first_value("artist_sort", "artists_sort")
|
||||
|
||||
if hasattr(m, "artists_credit"):
|
||||
ensure_first_value("artist_credit", "artists_credit")
|
||||
|
||||
if hasattr(m, "albumartists_credit"):
|
||||
ensure_first_value("albumartist_credit", "albumartists_credit")
|
||||
|
||||
if hasattr(m, "artists"):
|
||||
ensure_first_value("artist", "artists")
|
||||
|
||||
if hasattr(m, "albumartists_sort"):
|
||||
ensure_first_value("albumartist_sort", "albumartists_sort")
|
||||
|
||||
|
||||
def apply_item_metadata(item: Item, track_info: TrackInfo):
|
||||
"""Set an item's metadata from its matched TrackInfo object."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue