From 6ef879ffec5b182c62c3673be155a1911291aef6 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Sun, 2 Mar 2014 22:08:45 +0100 Subject: [PATCH] fix #563: split prog parts before formating in item's name --- beetsplug/duplicates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py index 63ce001d3..29a01220f 100644 --- a/beetsplug/duplicates.py +++ b/beetsplug/duplicates.py @@ -52,7 +52,8 @@ def _checksum(item, prog): output as flexattr on a key that is the name of the program, and return the key, checksum tuple. """ - args = shlex.split(prog.format(file=item.path)) + args = [p.format(file=item.path) for p in shlex.split(prog)] + print args key = args[0] checksum = getattr(item, key, False) if not checksum: