From f6ecbf659fc0f9d387b2745e6a3856ac9861be2e Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 28 Jul 2015 22:39:53 -0700 Subject: [PATCH] Silly oversight in fix for #1551 --- beetsplug/duplicates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py index eb135fc53..991fec935 100644 --- a/beetsplug/duplicates.py +++ b/beetsplug/duplicates.py @@ -259,7 +259,7 @@ class DuplicatesPlugin(BeetsPlugin): return v is not None and \ (v != '' if isinstance(v, unicode) else True) fields = kind.all_keys() - key = lambda x: sum(1 for f in fields if truthy(f)) + key = lambda x: sum(1 for f in fields if truthy(getattr(x, f))) else: key = lambda x: len(x.items())