From 61a037af6f08ff5e9c553e9e29e85f8cc96f2f68 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 1 May 2011 13:33:40 -0700 Subject: [PATCH] add "album art" to info plugin --- beetsplug/info.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/beetsplug/info.py b/beetsplug/info.py index 51157ccc5..62fc56868 100644 --- a/beetsplug/info.py +++ b/beetsplug/info.py @@ -27,7 +27,10 @@ def info(paths): for name, _, _, mffield in library.ITEM_FIELDS: if mffield: fields.append(name) - maxwidth = max(len(name) for name in fields) + + # Line format. + other_fields = ['album art'] + maxwidth = max(len(name) for name in fields + other_fields) lineformat = u'{{:>{0}}}: {{}}'.format(maxwidth) first = True @@ -42,8 +45,13 @@ def info(paths): except mediafile.UnreadableFileError: ui.print_('cannot read file') continue + + # Basic fields. for name in fields: ui.print_(lineformat.format(name, getattr(mf, name))) + # Extra stuff. + ui.print_(lineformat.format('album art', mf.art is not None)) + first = False