mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-22 01:23:43 +00:00
Merge pull request #269 from JackDandy/feature/ChangeScanPP
Change to no longer require restart with the "Scan and post process" opt...
This commit is contained in:
commit
f63ee33610
3 changed files with 22 additions and 4 deletions
|
@ -30,6 +30,7 @@
|
||||||
* Change layout of Recent Search code
|
* Change layout of Recent Search code
|
||||||
* Change naming of SEARCHQUEUE threads for shorter log lines
|
* Change naming of SEARCHQUEUE threads for shorter log lines
|
||||||
* Fix Recent Search running status on Manage Searches page
|
* Fix Recent Search running status on Manage Searches page
|
||||||
|
* Change to no longer require restart with the "Scan and post process" option on page config/Post Processing
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Fix traceback error when using the menu item Manage/Update Kodi
|
* Fix traceback error when using the menu item Manage/Update Kodi
|
||||||
|
|
|
@ -24,8 +24,15 @@ from sickbeard import encodingKludge as ek
|
||||||
|
|
||||||
|
|
||||||
class PostProcesser():
|
class PostProcesser():
|
||||||
@staticmethod
|
def __init__(self):
|
||||||
def run():
|
self.amActive = False
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
if not sickbeard.PROCESS_AUTOMATICALLY:
|
||||||
|
return
|
||||||
|
|
||||||
|
self.amActive = True
|
||||||
|
|
||||||
if not ek.ek(os.path.isdir, sickbeard.TV_DOWNLOAD_DIR):
|
if not ek.ek(os.path.isdir, sickbeard.TV_DOWNLOAD_DIR):
|
||||||
logger.log(u"Automatic post-processing attempted but dir %s doesn't exist" % sickbeard.TV_DOWNLOAD_DIR,
|
logger.log(u"Automatic post-processing attempted but dir %s doesn't exist" % sickbeard.TV_DOWNLOAD_DIR,
|
||||||
logger.ERROR)
|
logger.ERROR)
|
||||||
|
@ -36,4 +43,6 @@ class PostProcesser():
|
||||||
'(and probably not what you really want to process)' % sickbeard.TV_DOWNLOAD_DIR, logger.ERROR)
|
'(and probably not what you really want to process)' % sickbeard.TV_DOWNLOAD_DIR, logger.ERROR)
|
||||||
return
|
return
|
||||||
|
|
||||||
processTV.processDir(sickbeard.TV_DOWNLOAD_DIR)
|
processTV.processDir(sickbeard.TV_DOWNLOAD_DIR)
|
||||||
|
|
||||||
|
self.amActive = False
|
|
@ -3586,7 +3586,15 @@ class ConfigPostProcessing(Config):
|
||||||
if not config.change_TV_DOWNLOAD_DIR(tv_download_dir):
|
if not config.change_TV_DOWNLOAD_DIR(tv_download_dir):
|
||||||
results += ['Unable to create directory ' + os.path.normpath(tv_download_dir) + ', dir not changed.']
|
results += ['Unable to create directory ' + os.path.normpath(tv_download_dir) + ', dir not changed.']
|
||||||
|
|
||||||
sickbeard.PROCESS_AUTOMATICALLY = config.checkbox_to_value(process_automatically)
|
new_val = config.checkbox_to_value(process_automatically)
|
||||||
|
if new_val != sickbeard.PROCESS_AUTOMATICALLY:
|
||||||
|
if not sickbeard.PROCESS_AUTOMATICALLY and not sickbeard.autoPostProcesserScheduler.ident:
|
||||||
|
try:
|
||||||
|
sickbeard.autoPostProcesserScheduler.start()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
sickbeard.PROCESS_AUTOMATICALLY = new_val
|
||||||
|
|
||||||
config.change_AUTOPOSTPROCESSER_FREQUENCY(autopostprocesser_frequency)
|
config.change_AUTOPOSTPROCESSER_FREQUENCY(autopostprocesser_frequency)
|
||||||
|
|
||||||
if sickbeard.PROCESS_AUTOMATICALLY:
|
if sickbeard.PROCESS_AUTOMATICALLY:
|
||||||
|
|
Loading…
Reference in a new issue