diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 4697ffd65..33074b212 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -77,7 +77,7 @@ def all_items(): @app.route('/item//file') def item_file(item_id): item = g.lib.get_item(item_id) - return flask.send_file(item.path) + return flask.send_file(item.path, as_attachment=True, attachment_filename=os.path.basename(item.path)) @app.route('/item/query/') def item_query(query):