From c31eabe95cb603c9cc60b037143833fe5710abf2 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 27 Feb 2013 10:30:24 -0800 Subject: [PATCH] convert: add missing syspath call (closes #106) --- beetsplug/convert.py | 2 +- docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 8ff078bed..aee2f55f0 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -53,7 +53,7 @@ def convert_item(lib, dest_dir): dest = os.path.join(dest_dir, lib.destination(item, fragment=True)) dest = os.path.splitext(dest)[0] + '.mp3' - if os.path.exists(dest): + if os.path.exists(util.syspath(dest)): log.info(u'Skipping {0} (target file exists)'.format( util.displayable_path(item.path) )) diff --git a/docs/changelog.rst b/docs/changelog.rst index 0956a8969..316814836 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -32,6 +32,8 @@ Other stuff: empty. * Fix an error introduced in 1.1b1 when importing using timid mode. Thanks to Sam Doshi. +* :doc:`/plugins/convert`: Fix a bug when creating files with Unicode + pathnames. 1.1b2 (February 16, 2013) -------------------------