Set power_options to "false" i.e. *disable* shutdown/suspend on queue finish
Posted: October 6th, 2020, 7:52 am
Is there a way to do this? All my googling leads me to ways to enable this or fix it when it's not working. I want to *prevent* the Sabnzbd user from being able to do this, not even see those options in the dropdown menu.
It seems like the way to do it would be to set would be to set the variable $power_options to "false". The statement "#if $power_options#" shows up in the template files whenever the dropdown menu option is given to shutdown, standby, or hibernate. There is a statement in the api(dot)py file, but that's the only other reference I could find to "power_options", and it looks like this one just involves the api.
I know next-to-nothing about Python so I can't go any further than that. Any help would be much appreciated.
I am using SABnzbd version: 2.3.2 on Ubuntu 18.04
It seems like the way to do it would be to set would be to set the variable $power_options to "false". The statement "#if $power_options#" shows up in the template files whenever the dropdown menu option is given to shutdown, standby, or hibernate. There is a statement
Code: Select all
header['power_options'] = sabnzbd(dot)WIN32 or sabnzbd(dot)DARWIN or sabnzbd(dot)LINUX_POWERI know next-to-nothing about Python so I can't go any further than that. Any help would be much appreciated.
I am using SABnzbd version: 2.3.2 on Ubuntu 18.04