From f4b24bd85d554ed09c4f69b7e8c048c9a57c0efb Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 27 Jul 2014 15:20:17 -0700 Subject: [PATCH] Added a checkout branch button to the advanced config settings tab to tie things in better and make them easier. --- SickBeard.py | 5 +- .../interfaces/default/config_general.tmpl | 5 +- gui/slick/js/config.js | 56 +++++++++++-------- sickbeard/webserve.py | 9 +-- 4 files changed, 43 insertions(+), 32 deletions(-) diff --git a/SickBeard.py b/SickBeard.py index 3c35ad92..74b68050 100755 --- a/SickBeard.py +++ b/SickBeard.py @@ -71,6 +71,7 @@ throwaway = datetime.datetime.strptime('20110101', '%Y%m%d') signal.signal(signal.SIGINT, sickbeard.sig_handler) signal.signal(signal.SIGTERM, sickbeard.sig_handler) + class SickRage(object): def __init__(self): # system event callback for shutdown/restart @@ -455,7 +456,8 @@ class SickRage(object): sickbeard.showList.append(curShow) except Exception, e: logger.log( - u"There was an error creating the show in " + sqlShow["location"] + ": " + str(e).decode('utf-8', 'replace'), + u"There was an error creating the show in " + sqlShow["location"] + ": " + str(e).decode('utf-8', + 'replace'), logger.ERROR) def restore(self, srcDir, dstDir): @@ -519,6 +521,7 @@ class SickRage(object): # system exit os._exit(0) + if __name__ == "__main__": if sys.hexversion >= 0x020600F0: freeze_support() diff --git a/gui/slick/interfaces/default/config_general.tmpl b/gui/slick/interfaces/default/config_general.tmpl index 7bda4258..777bdeb2 100644 --- a/gui/slick/interfaces/default/config_general.tmpl +++ b/gui/slick/interfaces/default/config_general.tmpl @@ -278,13 +278,14 @@