From 385dd79cc668c07728d883c67f28135fedd3a454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Mon, 3 Nov 2025 08:55:18 +0000 Subject: [PATCH] autotag: fix list fields --- beets/autotag/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/beets/autotag/__init__.py b/beets/autotag/__init__.py index 43b246709..b2bcdcab0 100644 --- a/beets/autotag/__init__.py +++ b/beets/autotag/__init__.py @@ -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."""