From 6c1edc792cce17bfefd26b874d8f20f646ce2eaa Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 19 Apr 2011 23:30:35 -0700 Subject: [PATCH] print "(unknown album)" when no tags are present --- NEWS | 1 + beets/ui/commands.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b8ab9cd62..730cd235d 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 8141e473b..40a9e5f64 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -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 \