1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

Testing fix for web_root issues.

This commit is contained in:
echel0n 2014-07-09 13:14:53 -07:00
parent 2d0c31510e
commit a103035ac2

View File

@ -92,8 +92,8 @@ class SRWebServer(threading.Thread):
# Main Handler
self.app.add_handlers(".*$", [
(r'%s/api/(.*)' % self.options['web_root'], webapi.Api),
(r'%s/(.*)' % self.options['web_root'], webserve.MainHandler),
(r'%s/api/(.*)(/?)' % self.options['web_root'], webapi.Api),
(r'%s/(.*)(/?)' % self.options['web_root'], webserve.MainHandler),
(r'(.*)', webserve.MainHandler)
])
@ -101,12 +101,12 @@ class SRWebServer(threading.Thread):
self.app.add_handlers(".*$", [
(r'%s/(favicon\.ico)' % self.options['web_root'], MultiStaticFileHandler,
{'paths': [os.path.join(self.options['data_root'], 'images/ico/favicon.ico')]}),
(r'%s/%s/(.*)' % (self.options['web_root'], 'images'), MultiStaticFileHandler,
(r'%s/%s/(.*)(/?)' % (self.options['web_root'], 'images'), MultiStaticFileHandler,
{'paths': [os.path.join(self.options['data_root'], 'images'),
os.path.join(sickbeard.CACHE_DIR, 'images')]}),
(r'%s/%s/(.*)' % (self.options['web_root'], 'css'), MultiStaticFileHandler,
(r'%s/%s/(.*)(/?)' % (self.options['web_root'], 'css'), MultiStaticFileHandler,
{'paths': [os.path.join(self.options['data_root'], 'css')]}),
(r'%s/%s/(.*)' % (self.options['web_root'], 'js'), MultiStaticFileHandler,
(r'%s/%s/(.*)(/?)' % (self.options['web_root'], 'js'), MultiStaticFileHandler,
{'paths': [os.path.join(self.options['data_root'], 'js')]}),
])