Fix #2671: missing syspath on acoustid call

This commit is contained in:
Adrian Sampson 2017-08-26 11:18:27 -04:00
parent 8833fef249
commit 015aee3662
2 changed files with 3 additions and 1 deletions

View file

@ -295,7 +295,7 @@ def fingerprint_item(log, item, write=False):
log.info(u'{0}: fingerprinting', log.info(u'{0}: fingerprinting',
util.displayable_path(item.path)) util.displayable_path(item.path))
try: try:
_, fp = acoustid.fingerprint_file(item.path) _, fp = acoustid.fingerprint_file(util.syspath(item.path))
item.acoustid_fingerprint = fp item.acoustid_fingerprint = fp
if write: if write:
log.info(u'{0}: writing fingerprint', log.info(u'{0}: writing fingerprint',

View file

@ -33,6 +33,8 @@ Fixes:
resulting in unnecessary writes. This most prominently affected the resulting in unnecessary writes. This most prominently affected the
:doc:`/plugins/edit` when saving the text file without making changes to some :doc:`/plugins/edit` when saving the text file without making changes to some
music. :bug:`2667` music. :bug:`2667`
* :doc:`/plugins/chroma`: Fix a crash when running the ``submit`` command on
Python 3 on Windows with non-ASCII filenames. :bug:`2671`
For developers: For developers: