def change_DOWNLOAD_PROPERS(download_propers):
 download_propers = checkbox_to_value(download_propers)
 if (sickbeard.DOWNLOAD_PROPERS == download_propers):
  return
 sickbeard.DOWNLOAD_PROPERS = download_propers
 if sickbeard.DOWNLOAD_PROPERS:
  if (not sickbeard.properFinderScheduler.enable):
   logger.log(u'Starting PROPERFINDER thread', logger.INFO)
   sickbeard.properFinderScheduler.silent = False
   sickbeard.properFinderScheduler.enable = True
  else:
   logger.log(u'Unable to start PROPERFINDER thread. Already running', logger.INFO)
 else:
  sickbeard.properFinderScheduler.enable = False
  sickbeard.traktCheckerScheduler.silent = True
  logger.log(u'Stopping PROPERFINDER thread', logger.INFO)

def change_DOWNLOAD_PROPERS ( download_propers ) : download_propers = checkbox_to_value ( download_propers ) if ( sickbeard . DOWNLOAD_PROPERS == download_propers ) : return sickbeard . DOWNLOAD_PROPERS = download_propers if sickbeard . DOWNLOAD_PROPERS : if ( not sickbeard . properFinderScheduler . enable ) : logger . log ( u'Starting PROPERFINDER thread' , logger . INFO ) sickbeard . properFinderScheduler . silent = False sickbeard . properFinderScheduler . enable = True else : logger . log ( u'Unable to start PROPERFINDER thread. Already running' , logger . INFO ) else : sickbeard . properFinderScheduler . enable = False sickbeard . traktCheckerScheduler . silent = True logger . log ( u'Stopping PROPERFINDER thread' , logger . INFO )
enable/disable proper download thread todo: make this return true/false on success/failure .