I am currently experimenting a bit with the Max2Play Api-Examples. I noticed an error in the apidoc (http://max2play/apidoc/).
The example for changing the equalizer is suggested as follows:
curl -v -X GET "http://max2play/plugins/max2play_settings/controller/Squeezeplayer.php?apijson=1&use_equalizer=1&action=saveEqualizer&settingsEqualizer[01.+31+Hz]=54&settingsEqualizer[02.+63+Hz]=66%25&settingsEqualizer[03.+125+Hz]=66%25&settingsEqualizer[04.+250+Hz]=66%25&settingsEqualizer[05.+500+Hz]=66%25&settingsEqualizer[06.+1+kHz]=66%25&settingsEqualizer[07.+2+kHz]=66%25&settingsEqualizer[08.+4+kHz]=66%25&settingsEqualizer[09.+8+kHz]=66%25&settingsEqualizer[10.+16+kHz]=66%25
But correct is: curl -v -g -X GET "http://max2play/plugins/max2play_settings/controller/Squeezeplayer.php?apijson=1&use_equalizer=1&action=saveEqualizer&settingsEqualizer[00.+31+Hz]=10&settingsEqualizer[01.+63+Hz]=20%25&settingsEqualizer[02.+125+Hz]=66%25&settingsEqualizer[03.+250+Hz]=66%25&settingsEqualizer[04.+500+Hz]=66%25&settingsEqualizer[05.+1+kHz]=66%25&settingsEqualizer[06.+2+kHz]=66%25&settingsEqualizer[07.+4+kHz]=66%25&settingsEqualizer[08.+8+kHz]=66%25&settingsEqualizer[09.+16+kHz]=66%25"
Maybe this can be corrected in the next Max2Play version.
yes you are right. Either the parameters should be URL-encoded in the URL or the „–globoff“ should be added to the curl request.
We will change this in the documentation. Thanks for your help! The forum is the best way to report issues – or the GitHub page of Max2Play web interface.