This release supports the first new MPD 0.25 feature and improves the scripting feature.
There is now a new trigger to provide a background image by a script. An example implementation is available in the mympd-scripts repository.
Scripts can now set temporary variables which are kept in memory only and have an expiration time. They are useful to save some state between script executions.
Thanks to @cbrenberg that ironed out a severe bug in the mympd.tmp_file()
function.
API changes
- MYMPD_API_SCRIPT_TMP_DELETE: new
- MYMPD_API_SCRIPT_TMP_GET: new
- MYMPD_API_SCRIPT_TMP_LIST: new
- MYMPD_API_SCRIPT_TMP_SET: new
Scripting changes
- Feat:
mympd.check_arguments()
- Argument checking function - Feat:
mympd.isnilorempty()
- Checks for nil and empty string - Feat:
mympd.remove_file()
- Wrapper foros.remove
that logs errors - Fix:
mympd.tmp_file()
- Function does not return always uniq names #1422 - Feat: Add functions
mympd.jsonrpc_notification
,mympd.jsonrpc_error
andmympd.jsonrpc_warn
to return a jsonrpc response from scripts
Changelog
- Feat: Add temporary variables for scripts
- Feat: Add cache for Lua http client #1421
- Feat: Add trigger for background image selection #1420
- Feat: Use MPD side filter and window for listing tags (MPD 0.25)
- Feat: Add logviewer for gui logs
- Feat: Use range for retrieving playlist contents (MPD 0.24) #1424
- Upd: Improve websocket reconnection
- Upd: Improve API explorer - show request
- Upd: Bootstrap v5.3.4 #1418
- Upd: Jsonrpc severities are now the same as the syslog severities