1
0
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:
echel0n 2014-06-18 03:34:19 -07:00
commit 7da1f3b809
3 changed files with 9 additions and 7 deletions

View File

@ -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):

View File

@ -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:

View File

@ -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')]})
])