duplicates: Fix #999 (check "checksum" type)

This commit is contained in:
Adrian Sampson 2014-10-11 12:28:41 -07:00
parent 61e43787d2
commit 0749d4716c
2 changed files with 6 additions and 0 deletions

View file

@ -209,6 +209,10 @@ class DuplicatesPlugin(BeetsPlugin):
fmt += ': {0}'
if checksum:
if not isinstance(checksum, basestring):
raise UserError(
'duplicates: "checksum" option must be a command'
)
for i in items:
k, _ = _checksum(i, checksum)
keys = [k]

View file

@ -30,6 +30,8 @@ Fixes:
beets and instead fail silently.
* Slow queries, such as those over flexible attributes, should now be much
faster when used with certain commands---notably, the :doc:`/plugins/play`.
* :doc:`/plugins/duplicates`: Emit an error when the ``checksum`` config
option is set incorrectly.
1.3.8 (September 17, 2014)