diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 810de8718..e7b9ec81f 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -206,7 +206,7 @@ def item_file(item_id): response = flask.send_file( util.py3_path(item.path), as_attachment=True, - attachment_filename=os.path.basename(item.path), + attachment_filename=os.path.basename(util.py3_path(item.path)), ) response.headers['Content-Length'] = os.path.getsize(item.path) return response