mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
fix get item file of web plugin
This commit is contained in:
parent
1dddcb8455
commit
fde2ad3f65
2 changed files with 2 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ def item_file(item_id):
|
|||
response = flask.send_file(
|
||||
item_path,
|
||||
as_attachment=True,
|
||||
attachment_filename=safe_filename
|
||||
download_name=safe_filename
|
||||
)
|
||||
response.headers['Content-Length'] = os.path.getsize(item_path)
|
||||
return response
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ Bug fixes:
|
|||
that casues a crash when ImportAdded plugin enabled.
|
||||
:bug:`4389`
|
||||
* :doc:`plugins/convert`: Fix a bug with the `wma` format alias.
|
||||
* :doc:`/plugins/web`: Fix get file from item.
|
||||
|
||||
For packagers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue