mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Merge remote-tracking branch 'origin/dev'
This commit is contained in:
commit
7da1f3b809
@ -18,6 +18,8 @@
|
||||
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Check needed software dependencies to nudge users to fix their setup
|
||||
from __future__ import with_statement
|
||||
|
||||
import sys
|
||||
|
||||
if sys.version_info < (2, 6):
|
||||
|
@ -3277,14 +3277,12 @@ class Home(IndexHandler):
|
||||
if str(pid) != str(sickbeard.PID):
|
||||
self.redirect("/home/")
|
||||
|
||||
# auto-reload
|
||||
tornado.autoreload.start(IOLoop.current())
|
||||
|
||||
updated = sickbeard.versionCheckScheduler.action.update() # @UndefinedVariable
|
||||
|
||||
if updated:
|
||||
# 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")
|
||||
return _munge(t)
|
||||
else:
|
||||
|
@ -103,7 +103,7 @@ def initWebServer(options={}):
|
||||
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo='
|
||||
)
|
||||
|
||||
# Index Handler
|
||||
# Main Handler
|
||||
app.add_handlers(".*$", [
|
||||
(r"/", RedirectHandler, {'url': '%s/home/' % options['web_root']}),
|
||||
(r'%s/api/(.*)(/?)' % options['web_root'], webapi.Api),
|
||||
@ -121,7 +121,9 @@ def initWebServer(options={}):
|
||||
(r'%s/%s/(.*)(/?)' % (options['web_root'], 'css'), MultiStaticFileHandler,
|
||||
{'paths': [os.path.join(options['data_root'], 'css')]}),
|
||||
(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 New Issue
Block a user