From d6f20e91bd1667e2eced38ae825ce9bad0bf1d44 Mon Sep 17 00:00:00 2001 From: Jakob Schnitzer Date: Sun, 21 Oct 2012 13:54:24 +0200 Subject: [PATCH] Speedup 'beet ls' if no format is specified --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 81e1dc553..24d7280e7 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -814,7 +814,7 @@ def list_items(lib, query, album, fmt, config): """Print out items in lib matching query. If album, then search for albums instead of single items. """ - tmpl = Template(fmt) if fmt else None + tmpl = Template(fmt) if fmt else Template(ui._pick_format(config, album)) if album: for album in lib.albums(query): ui.print_obj(album, lib, config, tmpl)