mirror of
https://github.com/beetbox/beets.git
synced 2026-02-26 09:11:32 +01:00
merge
This commit is contained in:
commit
acbc785c7f
1 changed files with 3 additions and 1 deletions
|
|
@ -76,7 +76,9 @@ 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, as_attachment=True, attachment_filename=os.path.basename(item.path))
|
||||
response = flask.send_file(item.path, as_attachment=True, attachment_filename=os.path.basename(item.path))
|
||||
response.headers['Content-Length'] = os.path.getsize(item.path)
|
||||
return response
|
||||
|
||||
@app.route('/item/query/<path:query>')
|
||||
def item_query(query):
|
||||
|
|
|
|||
Loading…
Reference in a new issue