mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
keyfinder: Fix #1502 (unicode paths)
This commit is contained in:
parent
85ffe444dc
commit
ce91a0c929
2 changed files with 10 additions and 2 deletions
|
|
@ -61,9 +61,16 @@ class KeyFinderPlugin(BeetsPlugin):
|
|||
continue
|
||||
|
||||
try:
|
||||
output = util.command_output([bin, '-f', item.path])
|
||||
output = util.command_output([bin, b'-f',
|
||||
util.syspath(item.path)])
|
||||
except (subprocess.CalledProcessError, OSError) as exc:
|
||||
self._log.error(u'execution failed: {0}', exc)
|
||||
self._log.error('execution failed: {0}', exc)
|
||||
continue
|
||||
except UnicodeEncodeError:
|
||||
# Workaround for Python 2 Windows bug.
|
||||
# http://bugs.python.org/issue1759845
|
||||
self._log.error('execution failed for Unicode path: {0!r}',
|
||||
item.path)
|
||||
continue
|
||||
|
||||
key_raw = output.rsplit(None, 1)[-1]
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ Fixes:
|
|||
* Fix a bug, where the autotagger still considers matches that are specifically
|
||||
listed under the config's ignored section. :bug:`1487`
|
||||
* Fix a bug with unicode strings when generating thumbnails. :bug:`1485`
|
||||
* :doc:`/plugins/keyfinder`: Fix handling of Unicode paths. :bug:`1502`
|
||||
|
||||
|
||||
1.3.13 (April 24, 2015)
|
||||
|
|
|
|||
Loading…
Reference in a new issue