mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed bug #895, automatic post-processing not being enabled when setting enabled from config.
This commit is contained in:
parent
a5c0fe1d3c
commit
b1d7cdc1ad
@ -1768,10 +1768,20 @@ class ConfigPostProcessing(MainHandler):
|
|||||||
sickbeard.PROCESS_AUTOMATICALLY = config.checkbox_to_value(process_automatically)
|
sickbeard.PROCESS_AUTOMATICALLY = config.checkbox_to_value(process_automatically)
|
||||||
config.change_AUTOPOSTPROCESSER_FREQUENCY(autopostprocesser_frequency)
|
config.change_AUTOPOSTPROCESSER_FREQUENCY(autopostprocesser_frequency)
|
||||||
|
|
||||||
if sickbeard.PROCESS_AUTOMATICALLY:
|
if sickbeard.PROCESS_AUTOMATICALLY and not sickbeard.autoPostProcesserScheduler.isAlive():
|
||||||
sickbeard.autoPostProcesserScheduler.silent = False
|
sickbeard.autoPostProcesserScheduler.silent = False
|
||||||
else:
|
try:
|
||||||
|
sickbeard.autoPostProcesserScheduler.start()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
elif not sickbeard.PROCESS_AUTOMATICALLY:
|
||||||
|
sickbeard.autoPostProcesserScheduler.stop.set()
|
||||||
sickbeard.autoPostProcesserScheduler.silent = True
|
sickbeard.autoPostProcesserScheduler.silent = True
|
||||||
|
try:
|
||||||
|
sickbeard.autoPostProcesserScheduler.join(5)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if unpack:
|
if unpack:
|
||||||
if self.isRarSupported() != 'not supported':
|
if self.isRarSupported() != 'not supported':
|
||||||
@ -2591,11 +2601,13 @@ class ConfigSubtitles(MainHandler):
|
|||||||
|
|
||||||
if use_subtitles == "on" and not sickbeard.subtitlesFinderScheduler.isAlive():
|
if use_subtitles == "on" and not sickbeard.subtitlesFinderScheduler.isAlive():
|
||||||
sickbeard.subtitlesFinderScheduler.silent = False
|
sickbeard.subtitlesFinderScheduler.silent = False
|
||||||
sickbeard.subtitlesFinderScheduler.start()
|
try:
|
||||||
else:
|
sickbeard.subtitlesFinderScheduler.start()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
elif not use_subtitles == "on":
|
||||||
sickbeard.subtitlesFinderScheduler.stop.set()
|
sickbeard.subtitlesFinderScheduler.stop.set()
|
||||||
sickbeard.subtitlesFinderScheduler.silent = True
|
sickbeard.subtitlesFinderScheduler.silent = True
|
||||||
logger.log(u"Waiting for the SUBTITLESFINDER thread to exit")
|
|
||||||
try:
|
try:
|
||||||
sickbeard.subtitlesFinderScheduler.join(5)
|
sickbeard.subtitlesFinderScheduler.join(5)
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user