mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 14:25:02 -05:00
Test #2 for blank pages, turned cache on and removed all cache disabling entries.
This commit is contained in:
parent
84da4147fb
commit
77a659c17f
@ -213,14 +213,10 @@ class MainHandler(RequestHandler):
|
|||||||
return super(MainHandler, self).redirect(sickbeard.WEB_ROOT + url, permanent, status)
|
return super(MainHandler, self).redirect(sickbeard.WEB_ROOT + url, permanent, status)
|
||||||
|
|
||||||
def get(self, *args, **kwargs):
|
def get(self, *args, **kwargs):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
response = self._dispatch()
|
response = self._dispatch()
|
||||||
self.finish(response)
|
self.finish(response)
|
||||||
|
|
||||||
def post(self, *args, **kwargs):
|
def post(self, *args, **kwargs):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
response = self._dispatch()
|
response = self._dispatch()
|
||||||
self.finish(response)
|
self.finish(response)
|
||||||
|
|
||||||
@ -1485,7 +1481,6 @@ class ConfigBackupRestore(MainHandler):
|
|||||||
return _munge(t)
|
return _munge(t)
|
||||||
|
|
||||||
def backup(self, backupDir=None):
|
def backup(self, backupDir=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
finalResult = ''
|
finalResult = ''
|
||||||
|
|
||||||
@ -1506,7 +1501,7 @@ class ConfigBackupRestore(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def restore(self, backupFile=None):
|
def restore(self, backupFile=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
finalResult = ''
|
finalResult = ''
|
||||||
|
|
||||||
@ -3057,7 +3052,6 @@ class Home(MainHandler):
|
|||||||
else:
|
else:
|
||||||
return "Error: Unsupported Request. Send jsonp request with 'callback' variable in the query string."
|
return "Error: Unsupported Request. Send jsonp request with 'callback' variable in the query string."
|
||||||
|
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
self.set_header('Content-Type', 'text/javascript')
|
self.set_header('Content-Type', 'text/javascript')
|
||||||
self.set_header('Access-Control-Allow-Origin', '*')
|
self.set_header('Access-Control-Allow-Origin', '*')
|
||||||
self.set_header('Access-Control-Allow-Headers', 'x-requested-with')
|
self.set_header('Access-Control-Allow-Headers', 'x-requested-with')
|
||||||
@ -3118,7 +3112,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testGrowl(self, host=None, password=None):
|
def testGrowl(self, host=None, password=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_host(host, default_port=23053)
|
host = config.clean_host(host, default_port=23053)
|
||||||
|
|
||||||
@ -3135,7 +3129,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testProwl(self, prowl_api=None, prowl_priority=0):
|
def testProwl(self, prowl_api=None, prowl_priority=0):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.prowl_notifier.test_notify(prowl_api, prowl_priority)
|
result = notifiers.prowl_notifier.test_notify(prowl_api, prowl_priority)
|
||||||
if result:
|
if result:
|
||||||
@ -3145,7 +3139,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testBoxcar(self, username=None):
|
def testBoxcar(self, username=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.boxcar_notifier.test_notify(username)
|
result = notifiers.boxcar_notifier.test_notify(username)
|
||||||
if result:
|
if result:
|
||||||
@ -3155,7 +3149,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testBoxcar2(self, accesstoken=None):
|
def testBoxcar2(self, accesstoken=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.boxcar2_notifier.test_notify(accesstoken)
|
result = notifiers.boxcar2_notifier.test_notify(accesstoken)
|
||||||
if result:
|
if result:
|
||||||
@ -3165,7 +3159,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testPushover(self, userKey=None, apiKey=None):
|
def testPushover(self, userKey=None, apiKey=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.pushover_notifier.test_notify(userKey, apiKey)
|
result = notifiers.pushover_notifier.test_notify(userKey, apiKey)
|
||||||
if result:
|
if result:
|
||||||
@ -3175,13 +3169,13 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def twitterStep1(self, *args, **kwargs):
|
def twitterStep1(self, *args, **kwargs):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
return notifiers.twitter_notifier._get_authorization()
|
return notifiers.twitter_notifier._get_authorization()
|
||||||
|
|
||||||
|
|
||||||
def twitterStep2(self, key):
|
def twitterStep2(self, key):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.twitter_notifier._get_credentials(key)
|
result = notifiers.twitter_notifier._get_credentials(key)
|
||||||
logger.log(u"result: " + str(result))
|
logger.log(u"result: " + str(result))
|
||||||
@ -3192,7 +3186,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testTwitter(self, *args, **kwargs):
|
def testTwitter(self, *args, **kwargs):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.twitter_notifier.test_notify()
|
result = notifiers.twitter_notifier.test_notify()
|
||||||
if result:
|
if result:
|
||||||
@ -3202,7 +3196,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testXBMC(self, host=None, username=None, password=None):
|
def testXBMC(self, host=None, username=None, password=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_hosts(host)
|
host = config.clean_hosts(host)
|
||||||
finalResult = ''
|
finalResult = ''
|
||||||
@ -3218,7 +3212,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testPLEX(self, host=None, username=None, password=None):
|
def testPLEX(self, host=None, username=None, password=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
finalResult = ''
|
finalResult = ''
|
||||||
for curHost in [x.strip() for x in host.split(",")]:
|
for curHost in [x.strip() for x in host.split(",")]:
|
||||||
@ -3233,7 +3227,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testLibnotify(self, *args, **kwargs):
|
def testLibnotify(self, *args, **kwargs):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
if notifiers.libnotify_notifier.test_notify():
|
if notifiers.libnotify_notifier.test_notify():
|
||||||
return "Tried sending desktop notification via libnotify"
|
return "Tried sending desktop notification via libnotify"
|
||||||
@ -3242,7 +3236,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testNMJ(self, host=None, database=None, mount=None):
|
def testNMJ(self, host=None, database=None, mount=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_host(host)
|
host = config.clean_host(host)
|
||||||
result = notifiers.nmj_notifier.test_notify(urllib.unquote_plus(host), database, mount)
|
result = notifiers.nmj_notifier.test_notify(urllib.unquote_plus(host), database, mount)
|
||||||
@ -3253,7 +3247,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def settingsNMJ(self, host=None):
|
def settingsNMJ(self, host=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_host(host)
|
host = config.clean_host(host)
|
||||||
result = notifiers.nmj_notifier.notify_settings(urllib.unquote_plus(host))
|
result = notifiers.nmj_notifier.notify_settings(urllib.unquote_plus(host))
|
||||||
@ -3265,7 +3259,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testNMJv2(self, host=None):
|
def testNMJv2(self, host=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_host(host)
|
host = config.clean_host(host)
|
||||||
result = notifiers.nmjv2_notifier.test_notify(urllib.unquote_plus(host))
|
result = notifiers.nmjv2_notifier.test_notify(urllib.unquote_plus(host))
|
||||||
@ -3276,7 +3270,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def settingsNMJv2(self, host=None, dbloc=None, instance=None):
|
def settingsNMJv2(self, host=None, dbloc=None, instance=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_host(host)
|
host = config.clean_host(host)
|
||||||
result = notifiers.nmjv2_notifier.notify_settings(urllib.unquote_plus(host), dbloc, instance)
|
result = notifiers.nmjv2_notifier.notify_settings(urllib.unquote_plus(host), dbloc, instance)
|
||||||
@ -3289,7 +3283,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testTrakt(self, api=None, username=None, password=None):
|
def testTrakt(self, api=None, username=None, password=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.trakt_notifier.test_notify(api, username, password)
|
result = notifiers.trakt_notifier.test_notify(api, username, password)
|
||||||
if result:
|
if result:
|
||||||
@ -3299,7 +3293,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def loadShowNotifyLists(self, *args, **kwargs):
|
def loadShowNotifyLists(self, *args, **kwargs):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
myDB = db.DBConnection()
|
myDB = db.DBConnection()
|
||||||
rows = myDB.select("SELECT show_id, show_name, notify_list FROM tv_shows ORDER BY show_name ASC")
|
rows = myDB.select("SELECT show_id, show_name, notify_list FROM tv_shows ORDER BY show_name ASC")
|
||||||
@ -3314,7 +3308,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testEmail(self, host=None, port=None, smtp_from=None, use_tls=None, user=None, pwd=None, to=None):
|
def testEmail(self, host=None, port=None, smtp_from=None, use_tls=None, user=None, pwd=None, to=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
host = config.clean_host(host)
|
host = config.clean_host(host)
|
||||||
if notifiers.email_notifier.test_notify(host, port, smtp_from, use_tls, user, pwd, to):
|
if notifiers.email_notifier.test_notify(host, port, smtp_from, use_tls, user, pwd, to):
|
||||||
@ -3324,7 +3318,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testNMA(self, nma_api=None, nma_priority=0):
|
def testNMA(self, nma_api=None, nma_priority=0):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.nma_notifier.test_notify(nma_api, nma_priority)
|
result = notifiers.nma_notifier.test_notify(nma_api, nma_priority)
|
||||||
if result:
|
if result:
|
||||||
@ -3334,7 +3328,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testPushalot(self, authorizationToken=None):
|
def testPushalot(self, authorizationToken=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.pushalot_notifier.test_notify(authorizationToken)
|
result = notifiers.pushalot_notifier.test_notify(authorizationToken)
|
||||||
if result:
|
if result:
|
||||||
@ -3344,7 +3338,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def testPushbullet(self, api=None):
|
def testPushbullet(self, api=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.pushbullet_notifier.test_notify(api)
|
result = notifiers.pushbullet_notifier.test_notify(api)
|
||||||
if result:
|
if result:
|
||||||
@ -3354,7 +3348,7 @@ class Home(MainHandler):
|
|||||||
|
|
||||||
|
|
||||||
def getPushbulletDevices(self, api=None):
|
def getPushbulletDevices(self, api=None):
|
||||||
self.set_header('Cache-Control', "max-age=0,no-cache,no-store")
|
|
||||||
|
|
||||||
result = notifiers.pushbullet_notifier.get_devices(api)
|
result = notifiers.pushbullet_notifier.get_devices(api)
|
||||||
if result:
|
if result:
|
||||||
|
Loading…
Reference in New Issue
Block a user