- This topic has 0 replies, 1 voice, and was last updated 3 years, 3 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Max2Play Home › Forums › Max2Play Add-ons › Possible bug (and fix) in JustBoom volume update via remote POST
Tagged: Justboom
Hi,
using the most recent version for Raspberry Pi 4. I am using HASSIO to update Max2Play using rest commands.
I noticed that sending the post request to update the volume was not working. Had a look at the controller Setup.php file and looks like there’s an error on line 90. Where the same action request does the same thing – was this on purpose?
If I rename the action to something different than save_dtoverlay e.g. save_volume it only fires the _saveAlsa() method and volume is correctly updated.
Lines 85 – 95 for reference:
if(isset($_REQUEST['action'])) {
if($_REQUEST['action'] == 'save_dtoverlay') {
$this->_saveDtoverlay();
$this->_getDTOverlayConfig();
}
if($_REQUEST['action'] == 'save_volume') {
$this->_saveAlsa();
}
if($_REQUEST['action'] == 'installKernelPi'){
$this->_installKernelPi($ajax = 0);
}
}
You must be logged in to reply to this topic.
Max2Play free download
Download now