mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Checks if trakt is enabled before attempting to start schedualed thread tasks.
This commit is contained in:
parent
c423d349e8
commit
830a4c840e
@ -1158,8 +1158,7 @@ def start():
|
||||
autoPostProcesserScheduler.start()
|
||||
|
||||
# start the subtitles finder
|
||||
if USE_SUBTITLES:
|
||||
subtitlesFinderScheduler.start()
|
||||
subtitlesFinderScheduler.start()
|
||||
|
||||
# start the trakt checker
|
||||
traktCheckerScheduler.start()
|
||||
|
@ -38,9 +38,6 @@ class ProperFinder():
|
||||
def __init__(self):
|
||||
self.amActive = False
|
||||
|
||||
def __del__(self):
|
||||
pass
|
||||
|
||||
def run(self, force=False):
|
||||
|
||||
if not sickbeard.DOWNLOAD_PROPERS:
|
||||
|
@ -87,10 +87,9 @@ class SubtitlesFinder():
|
||||
and download subtitles. Only if the defined rule is true
|
||||
"""
|
||||
def run(self, force=False):
|
||||
# TODO: Put that in the __init__ before starting the thread?
|
||||
if not sickbeard.USE_SUBTITLES:
|
||||
logger.log(u'Subtitles support disabled', logger.DEBUG)
|
||||
return
|
||||
|
||||
if len(sickbeard.subtitles.getEnabledServiceList()) < 1:
|
||||
logger.log(u'Not enough services selected. At least 1 service is required to search subtitles in the background', logger.ERROR)
|
||||
return
|
||||
|
@ -35,6 +35,9 @@ class TraktChecker():
|
||||
self.todoBacklog = []
|
||||
|
||||
def run(self, force=False):
|
||||
if not sickbeard.USE_TRAKT:
|
||||
return
|
||||
|
||||
try:
|
||||
# add shows from trakt.tv watchlist
|
||||
if sickbeard.TRAKT_USE_WATCHLIST:
|
||||
|
Loading…
Reference in New Issue
Block a user