mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 20:43:41 +01:00
Roll back logging changes
This commit is contained in:
parent
73ede2642d
commit
d230b3b870
1 changed files with 2 additions and 6 deletions
|
|
@ -419,13 +419,9 @@ 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:
|
||||
new_value = self._get('albumartist')
|
||||
log.debug('No artist, using album artist {0}'.format(new_value))
|
||||
return new_value
|
||||
return self._get('albumartist')
|
||||
elif key == 'albumartist' and not value:
|
||||
new_value = self._get('artist')
|
||||
log.debug('No albumartist, using artist {0}'.format(new_value))
|
||||
return new_value
|
||||
return self._get('artist')
|
||||
else:
|
||||
return value
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue