Skip to content

Commit

Permalink
Merge pull request #5057 from mgoltzsche/fix-web-plugin-range-requests
Browse files Browse the repository at this point in the history
web: fix/add range request support
  • Loading branch information
sampsyo authored Dec 22, 2023
2 parents bcf180d + 6b929c6 commit 296f01b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion beetsplug/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ def item_file(item_id):
response = flask.send_file(
item_path, as_attachment=True, download_name=safe_filename
)
response.headers["Content-Length"] = os.path.getsize(item_path)
return response


Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ Bug fixes:
:bug:`4973`
* Fix bug regarding displaying tracks that have been changed not being
displayed unless the detail configuration is enabled.
* :doc:`/plugins/web`: Fix range request support, allowing to play large audio/
opus files using e.g. a browser/firefox or gstreamer/mopidy directly.

For plugin developers:

Expand Down

0 comments on commit 296f01b

Please sign in to comment.