def change_PROCESS_AUTOMATICALLY(process_automatically):
 process_automatically = checkbox_to_value(process_automatically)
 if (sickbeard.PROCESS_AUTOMATICALLY == process_automatically):
  return
 sickbeard.PROCESS_AUTOMATICALLY = process_automatically
 if sickbeard.PROCESS_AUTOMATICALLY:
  if (not sickbeard.autoPostProcessorScheduler.enable):
   logger.log(u'Starting POSTPROCESSOR thread', logger.INFO)
   sickbeard.autoPostProcessorScheduler.silent = False
   sickbeard.autoPostProcessorScheduler.enable = True
  else:
   logger.log(u'Unable to start POSTPROCESSOR thread. Already running', logger.INFO)
 else:
  logger.log(u'Stopping POSTPROCESSOR thread', logger.INFO)
  sickbeard.autoPostProcessorScheduler.enable = False
  sickbeard.autoPostProcessorScheduler.silent = True

def change_PROCESS_AUTOMATICALLY ( process_automatically ) : process_automatically = checkbox_to_value ( process_automatically ) if ( sickbeard . PROCESS_AUTOMATICALLY == process_automatically ) : return sickbeard . PROCESS_AUTOMATICALLY = process_automatically if sickbeard . PROCESS_AUTOMATICALLY : if ( not sickbeard . autoPostProcessorScheduler . enable ) : logger . log ( u'Starting POSTPROCESSOR thread' , logger . INFO ) sickbeard . autoPostProcessorScheduler . silent = False sickbeard . autoPostProcessorScheduler . enable = True else : logger . log ( u'Unable to start POSTPROCESSOR thread. Already running' , logger . INFO ) else : logger . log ( u'Stopping POSTPROCESSOR thread' , logger . INFO ) sickbeard . autoPostProcessorScheduler . enable = False sickbeard . autoPostProcessorScheduler . silent = True
enable/disable postprocessor thread todo: make this return true/false on success/failure .