From cf5ab2617af6de3e2e1e426dc5acf1260091ca0e Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Fri, 17 Jun 2016 01:16:53 -0400 Subject: [PATCH] reorient bytestring_path code in convert replace_ext --- beetsplug/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 5f7ede949..21a348bab 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -47,8 +47,8 @@ def replace_ext(path, ext): The new extension must not contain a leading dot. """ - path = os.path.splitext(path)[0] + '.' + ext - return util.bytestring_path(path) + ext_dot = util.bytestring_path('.' + ext) + return os.path.splitext(path)[0] + ext_dot def get_format(fmt=None):