mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -05:00
Startup/Restart issues resolved.
This commit is contained in:
parent
52f65ca735
commit
172dec1017
@ -78,7 +78,8 @@ class TraktChecker():
|
||||
|
||||
if data is not None:
|
||||
logger.log(u"Removing " + show_obj.name + " from trakt.tv library", logger.DEBUG)
|
||||
TraktCall("show/unlibrary/%API%", sickbeard.TRAKT_API, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD, data)
|
||||
TraktCall("show/unlibrary/%API%", sickbeard.TRAKT_API, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD,
|
||||
data)
|
||||
|
||||
def addShowToTraktLibrary(self, show_obj):
|
||||
"""
|
||||
@ -99,7 +100,8 @@ class TraktChecker():
|
||||
|
||||
if data is not None:
|
||||
logger.log(u"Adding " + show_obj.name + " to trakt.tv library", logger.DEBUG)
|
||||
TraktCall("show/library/%API%", sickbeard.TRAKT_API, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD, data)
|
||||
TraktCall("show/library/%API%", sickbeard.TRAKT_API, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD,
|
||||
data)
|
||||
|
||||
def updateShows(self):
|
||||
logger.log(u"Starting trakt show watchlist check", logger.DEBUG)
|
||||
@ -152,9 +154,13 @@ class TraktChecker():
|
||||
|
||||
logger.log(u"Adding show " + str(indexerid))
|
||||
root_dirs = sickbeard.ROOT_DIRS.split('|')
|
||||
if root_dirs:
|
||||
location = root_dirs[int(root_dirs[0]) + 1]
|
||||
|
||||
try:
|
||||
location = root_dirs[int(root_dirs[0]) + 1]
|
||||
except:
|
||||
location = None
|
||||
|
||||
if location:
|
||||
showPath = ek.ek(os.path.join, location, helpers.sanitizeFileName(name))
|
||||
dir_exists = helpers.makeDir(showPath)
|
||||
if not dir_exists:
|
||||
|
@ -2830,10 +2830,13 @@ class NewHomeAddShows(MainHandler):
|
||||
if helpers.findCertainShow(sickbeard.showList, int(indexer_id)):
|
||||
return
|
||||
|
||||
if sickbeard.ROOT_DIRS:
|
||||
root_dirs = sickbeard.ROOT_DIRS.split('|')
|
||||
if root_dirs:
|
||||
location = root_dirs[int(root_dirs[0]) + 1]
|
||||
else:
|
||||
location = None
|
||||
|
||||
if location:
|
||||
show_dir = ek.ek(os.path.join, location, helpers.sanitizeFileName(showName))
|
||||
dir_exists = helpers.makeDir(show_dir)
|
||||
if not dir_exists:
|
||||
|
@ -55,8 +55,11 @@ class SRWebServer(threading.Thread):
|
||||
assert 'data_root' in self.options
|
||||
|
||||
# video root
|
||||
if sickbeard.ROOT_DIRS:
|
||||
root_dirs = sickbeard.ROOT_DIRS.split('|')
|
||||
self.video_root = root_dirs[int(root_dirs[0]) + 1] if root_dirs else None
|
||||
self.video_root = root_dirs[int(root_dirs[0]) + 1]
|
||||
else:
|
||||
self.video_root = None
|
||||
|
||||
# web root
|
||||
self.options['web_root'] = ('/' + self.options['web_root'].lstrip('/')) if self.options[
|
||||
|
Loading…
Reference in New Issue
Block a user