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()
|
autoPostProcesserScheduler.start()
|
||||||
|
|
||||||
# start the subtitles finder
|
# start the subtitles finder
|
||||||
if USE_SUBTITLES:
|
subtitlesFinderScheduler.start()
|
||||||
subtitlesFinderScheduler.start()
|
|
||||||
|
|
||||||
# start the trakt checker
|
# start the trakt checker
|
||||||
traktCheckerScheduler.start()
|
traktCheckerScheduler.start()
|
||||||
|
@ -38,9 +38,6 @@ class ProperFinder():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.amActive = False
|
self.amActive = False
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def run(self, force=False):
|
def run(self, force=False):
|
||||||
|
|
||||||
if not sickbeard.DOWNLOAD_PROPERS:
|
if not sickbeard.DOWNLOAD_PROPERS:
|
||||||
|
@ -87,10 +87,9 @@ class SubtitlesFinder():
|
|||||||
and download subtitles. Only if the defined rule is true
|
and download subtitles. Only if the defined rule is true
|
||||||
"""
|
"""
|
||||||
def run(self, force=False):
|
def run(self, force=False):
|
||||||
# TODO: Put that in the __init__ before starting the thread?
|
|
||||||
if not sickbeard.USE_SUBTITLES:
|
if not sickbeard.USE_SUBTITLES:
|
||||||
logger.log(u'Subtitles support disabled', logger.DEBUG)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if len(sickbeard.subtitles.getEnabledServiceList()) < 1:
|
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)
|
logger.log(u'Not enough services selected. At least 1 service is required to search subtitles in the background', logger.ERROR)
|
||||||
return
|
return
|
||||||
|
@ -35,6 +35,9 @@ class TraktChecker():
|
|||||||
self.todoBacklog = []
|
self.todoBacklog = []
|
||||||
|
|
||||||
def run(self, force=False):
|
def run(self, force=False):
|
||||||
|
if not sickbeard.USE_TRAKT:
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# add shows from trakt.tv watchlist
|
# add shows from trakt.tv watchlist
|
||||||
if sickbeard.TRAKT_USE_WATCHLIST:
|
if sickbeard.TRAKT_USE_WATCHLIST:
|
||||||
|
Loading…
Reference in New Issue
Block a user