mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
fix #563: split prog parts before formating in item's name
This commit is contained in:
parent
dc4624c1b3
commit
6ef879ffec
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue