plugin web attachment_filename should be renamed download_name
Task Info (Flyspray) | |
---|---|
Opened By | Ossewaarde (Tjaco) |
Task ID | 77439 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2023-02-08 20:27:54 UTC |
Status | Assigned |
Assignee | Maxime Gauduin (Alucryd) |
Assignee | Bruno Pagani (ArchangeGabriel) |
Details
Description: Using beets beet web plugin: TypeError: send_file() got an unexpected keyword argument 'attachment_filename'
Additional info:
- package version(s): 1.6.0-4
Steps to reproduce: Start beet web on server and browse to server.ip:8337 Error message will appear on screen of server; sound and download does not work in browser
The explanation is that attachment_filename have been renamed download_name in python. File: "/usr/lib/python3.10/site-packages/beetsplug/web/init.py" Line 327: attachment_filename=safe_filename Should be download_name=safe_filename
See also: https://github.com/beetbox/beets/blob/master/beetsplug/web/init.py