From 015aee366288466d0a59892bf5046144a19e0890 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 26 Aug 2017 11:18:27 -0400 Subject: [PATCH] Fix #2671: missing syspath on acoustid call --- beetsplug/chroma.py | 2 +- docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/chroma.py b/beetsplug/chroma.py index cd0a77593..574729560 100644 --- a/beetsplug/chroma.py +++ b/beetsplug/chroma.py @@ -295,7 +295,7 @@ def fingerprint_item(log, item, write=False): log.info(u'{0}: fingerprinting', util.displayable_path(item.path)) try: - _, fp = acoustid.fingerprint_file(item.path) + _, fp = acoustid.fingerprint_file(util.syspath(item.path)) item.acoustid_fingerprint = fp if write: log.info(u'{0}: writing fingerprint', diff --git a/docs/changelog.rst b/docs/changelog.rst index 5e0391f22..2e4f1be54 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -33,6 +33,8 @@ Fixes: resulting in unnecessary writes. This most prominently affected the :doc:`/plugins/edit` when saving the text file without making changes to some 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: