mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
Log the new value
This commit is contained in:
parent
25e55a88a3
commit
59dec3f4da
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue