def change_USE_SUBTITLES(use_subtitles):
 use_subtitles = checkbox_to_value(use_subtitles)
 if (sickbeard.USE_SUBTITLES == use_subtitles):
  return
 sickbeard.USE_SUBTITLES = use_subtitles
 if sickbeard.USE_SUBTITLES:
  if (not sickbeard.subtitlesFinderScheduler.enable):
   logger.log(u'Starting SUBTITLESFINDER thread', logger.INFO)
   sickbeard.subtitlesFinderScheduler.silent = False
   sickbeard.subtitlesFinderScheduler.enable = True
  else:
   logger.log(u'Unable to start SUBTITLESFINDER thread. Already running', logger.INFO)
 else:
  sickbeard.subtitlesFinderScheduler.enable = False
  sickbeard.subtitlesFinderScheduler.silent = True
  logger.log(u'Stopping SUBTITLESFINDER thread', logger.INFO)

def change_USE_SUBTITLES ( use_subtitles ) : use_subtitles = checkbox_to_value ( use_subtitles ) if ( sickbeard . USE_SUBTITLES == use_subtitles ) : return sickbeard . USE_SUBTITLES = use_subtitles if sickbeard . USE_SUBTITLES : if ( not sickbeard . subtitlesFinderScheduler . enable ) : logger . log ( u'Starting SUBTITLESFINDER thread' , logger . INFO ) sickbeard . subtitlesFinderScheduler . silent = False sickbeard . subtitlesFinderScheduler . enable = True else : logger . log ( u'Unable to start SUBTITLESFINDER thread. Already running' , logger . INFO ) else : sickbeard . subtitlesFinderScheduler . enable = False sickbeard . subtitlesFinderScheduler . silent = True logger . log ( u'Stopping SUBTITLESFINDER thread' , logger . INFO )
enable/disable subtitle searcher todo: make this return true/false on success/failure .