Possible bug (and fix) in JustBoom volume update via remote POST

Max2Play Home 2016 (en) Forums Max2Play Add-ons Possible bug (and fix) in JustBoom volume update via remote POST

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Adskiremote 3 months, 2 weeks ago.

Viewing 1 post (of 1 total)
  • 7. Juni 2020 at 23:31 #48953

    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);
         }
    }
    
    • This topic was modified 3 months, 2 weeks ago by  Adskiremote.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Register here