From 2d04285ebc15e2996f473a5f9dc47fcc2db6f4cb Mon Sep 17 00:00:00 2001 From: Tai Lee Date: Tue, 21 May 2013 23:52:10 +1000 Subject: [PATCH] Don't colorise the "()" around partial match text. For consistency (and a little easier to read?) --- beets/ui/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 706ca5a95..432aac4f3 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -114,7 +114,7 @@ default_commands.append(fields_cmd) VARIOUS_ARTISTS = u'Various Artists' -PARTIAL_MATCH_MESSAGE = u'(partial match!)' +PARTIAL_MATCH_MESSAGE = u'partial match!' # Importer utilities and support. @@ -155,7 +155,7 @@ def show_change(cur_artist, cur_album, match): # Add a suffix if this is a partial match. if partial: - out += u' ' + ui.colorize('yellow', PARTIAL_MATCH_MESSAGE) + out += u' (%s)' % ui.colorize('yellow', PARTIAL_MATCH_MESSAGE) print_(out) @@ -200,7 +200,7 @@ def show_change(cur_artist, cur_album, match): else: message = u"Tagging: %s - %s" % (match.info.artist, match.info.album) if match.extra_items or match.extra_tracks: - message += u' ' + ui.colorize('yellow', PARTIAL_MATCH_MESSAGE) + message += u' (%s)' % ui.colorize('yellow', PARTIAL_MATCH_MESSAGE) print_(message) # Info line. @@ -440,7 +440,7 @@ def choose_candidate(candidates, singleton, rec, cur_artist=None, if match.extra_items or match.extra_tracks: warning = PARTIAL_MATCH_MESSAGE warning = ui.colorize('yellow', warning) - line += u' %s' % warning + line += u' (%s)' % warning print_(line)