print "(unknown album)" when no tags are present

This commit is contained in:
Adrian Sampson 2011-04-19 23:30:35 -07:00
parent c2fd535047
commit 6c1edc792c
2 changed files with 4 additions and 1 deletions

1
NEWS
View file

@ -33,6 +33,7 @@
to the @listen decorator (Thanks again, Lugoues!)
* In path formats, $albumartist now falls back to $artist (as well as
the other way around).
* The importer now prints "(unknown album)" when no tags are present.
* When autotagging, "and" is considered equal to "&".
* Fix some crashes when deleting files that don't exist.
* Fix adding individual tracks in BPD.

View file

@ -76,8 +76,10 @@ def show_change(cur_artist, cur_album, items, info, dist, color=True):
def show_album(artist, album):
if artist:
print_(' %s - %s' % (artist, album))
else:
elif album:
print_(' %s' % album)
else:
print_(' (unknown album)')
# Identify the album in question.
if cur_artist != info['artist'] or \