From 3e9135ee7cf0865e1ed006241275a90ff9c9728a Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 7 Dec 2012 14:49:11 -0800 Subject: [PATCH] syspath-ify call to pyacoustid (GC-464) --- beetsplug/chroma.py | 2 +- docs/changelog.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/chroma.py b/beetsplug/chroma.py index 9b3229dd1..e2eb4af3a 100644 --- a/beetsplug/chroma.py +++ b/beetsplug/chroma.py @@ -52,7 +52,7 @@ def acoustid_match(path): _matches, _fingerprints, and _acoustids dictionaries accordingly. """ try: - duration, fp = acoustid.fingerprint_file(path) + duration, fp = acoustid.fingerprint_file(util.syspath(path)) except acoustid.FingerprintGenerationError as exc: log.error('fingerprinting of %s failed: %s' % (repr(path), str(exc))) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8b9544769..2a3f3a660 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -79,6 +79,7 @@ Changelog * Fix some problem with identifying files on Windows with Unicode directory names in their path. * Fix a crash when Unicode queries were used with ``import -L`` re-imports. +* Fix an error when fingerprinting files with Unicode filenames on Windows. * Add human-readable error messages when writing files' tags fails or when a directory can't be created. * Changed plugin loading so that modules can be imported without