def change_AUTOPOSTPROCESSOR_FREQUENCY(freq):
 sickbeard.AUTOPOSTPROCESSOR_FREQUENCY = try_int(freq, sickbeard.DEFAULT_AUTOPOSTPROCESSOR_FREQUENCY)
 if (sickbeard.AUTOPOSTPROCESSOR_FREQUENCY < sickbeard.MIN_AUTOPOSTPROCESSOR_FREQUENCY):
  sickbeard.AUTOPOSTPROCESSOR_FREQUENCY = sickbeard.MIN_AUTOPOSTPROCESSOR_FREQUENCY
 sickbeard.autoPostProcessorScheduler.cycleTime = datetime.timedelta(minutes=sickbeard.AUTOPOSTPROCESSOR_FREQUENCY)

def change_AUTOPOSTPROCESSOR_FREQUENCY ( freq ) : sickbeard . AUTOPOSTPROCESSOR_FREQUENCY = try_int ( freq , sickbeard . DEFAULT_AUTOPOSTPROCESSOR_FREQUENCY ) if ( sickbeard . AUTOPOSTPROCESSOR_FREQUENCY < sickbeard . MIN_AUTOPOSTPROCESSOR_FREQUENCY ) : sickbeard . AUTOPOSTPROCESSOR_FREQUENCY = sickbeard . MIN_AUTOPOSTPROCESSOR_FREQUENCY sickbeard . autoPostProcessorScheduler . cycleTime = datetime . timedelta ( minutes = sickbeard . AUTOPOSTPROCESSOR_FREQUENCY )
change frequency of automatic postprocessing thread todo: make all thread frequency changers in config .