mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 14:03:12 +01:00
Merge pull request #46 from zacharydenton/master
Fix web plugin download filenames.
This commit is contained in:
commit
71efb8e32a
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def all_items():
|
|||
@app.route('/item/<int:item_id>/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/<path:query>')
|
||||
def item_query(query):
|
||||
|
|
|
|||
Loading…
Reference in a new issue