mirror of
https://github.com/beetbox/beets.git
synced 2026-05-17 21:10:59 -04:00
fix #563: split prog parts before formating in item's name
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user