From 59dec3f4da17d107fc15a7108e02592cf09df8ba Mon Sep 17 00:00:00 2001 From: RollingStar Date: Wed, 30 Oct 2019 20:29:32 -0400 Subject: [PATCH] Log the new value --- beets/library.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/beets/library.py b/beets/library.py index d5fb5fa75..257197149 100644 --- a/beets/library.py +++ b/beets/library.py @@ -419,11 +419,13 @@ class FormattedItemMapping(dbcore.db.FormattedMapping): # This is helpful in path formats when the album artist is unset # on as-is imports. if key == 'artist' and not value: - log.debug('No artist, using album artist {0}'.format(value)) - return self._get('albumartist') + new_value = self._get('albumartist') + log.debug('No artist, using album artist {0}'.format(new_value)) + return new_value elif key == 'albumartist' and not value: - log.debug('No albumartist, using artist {0}'.format(value)) - return self._get('artist') + new_value = self._get('artist') + log.debug('No albumartist, using artist {0}'.format(new_value)) + return new_value else: return value