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):