mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Merge remote-tracking branch 'origin/dev'
This commit is contained in:
commit
7da1f3b809
3 changed files with 9 additions and 7 deletions
|
@ -18,6 +18,8 @@
|
||||||
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
|
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Check needed software dependencies to nudge users to fix their setup
|
# Check needed software dependencies to nudge users to fix their setup
|
||||||
|
from __future__ import with_statement
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.version_info < (2, 6):
|
if sys.version_info < (2, 6):
|
||||||
|
|
|
@ -3277,14 +3277,12 @@ class Home(IndexHandler):
|
||||||
if str(pid) != str(sickbeard.PID):
|
if str(pid) != str(sickbeard.PID):
|
||||||
self.redirect("/home/")
|
self.redirect("/home/")
|
||||||
|
|
||||||
# auto-reload
|
|
||||||
tornado.autoreload.start(IOLoop.current())
|
|
||||||
|
|
||||||
updated = sickbeard.versionCheckScheduler.action.update() # @UndefinedVariable
|
updated = sickbeard.versionCheckScheduler.action.update() # @UndefinedVariable
|
||||||
|
|
||||||
if updated:
|
if updated:
|
||||||
# do a hard restart
|
# do a hard restart
|
||||||
#threading.Timer(2, sickbeard.invoke_restart, [False]).start()
|
if not sickbeard.AUTO_UPDATE:
|
||||||
|
threading.Timer(2, sickbeard.invoke_restart, [False]).start()
|
||||||
|
|
||||||
t = PageTemplate(file="restart_bare.tmpl")
|
t = PageTemplate(file="restart_bare.tmpl")
|
||||||
return _munge(t)
|
return _munge(t)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -103,7 +103,7 @@ def initWebServer(options={}):
|
||||||
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo='
|
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo='
|
||||||
)
|
)
|
||||||
|
|
||||||
# Index Handler
|
# Main Handler
|
||||||
app.add_handlers(".*$", [
|
app.add_handlers(".*$", [
|
||||||
(r"/", RedirectHandler, {'url': '%s/home/' % options['web_root']}),
|
(r"/", RedirectHandler, {'url': '%s/home/' % options['web_root']}),
|
||||||
(r'%s/api/(.*)(/?)' % options['web_root'], webapi.Api),
|
(r'%s/api/(.*)(/?)' % options['web_root'], webapi.Api),
|
||||||
|
@ -121,7 +121,9 @@ def initWebServer(options={}):
|
||||||
(r'%s/%s/(.*)(/?)' % (options['web_root'], 'css'), MultiStaticFileHandler,
|
(r'%s/%s/(.*)(/?)' % (options['web_root'], 'css'), MultiStaticFileHandler,
|
||||||
{'paths': [os.path.join(options['data_root'], 'css')]}),
|
{'paths': [os.path.join(options['data_root'], 'css')]}),
|
||||||
(r'%s/%s/(.*)(/?)' % (options['web_root'], 'js'), MultiStaticFileHandler,
|
(r'%s/%s/(.*)(/?)' % (options['web_root'], 'js'), MultiStaticFileHandler,
|
||||||
{'paths': [os.path.join(options['data_root'], 'js')]})
|
{'paths': [os.path.join(options['data_root'], 'js'),
|
||||||
|
os.path.join(options['data_root'], 'js/lib'),
|
||||||
|
os.path.join(options['data_root'], 'js/fancybox')]})
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue