From 890b56aed64c0dd3a65bad26cfdcbc2b2fc2b2e0 Mon Sep 17 00:00:00 2001 From: Michael Pauley Date: Sun, 7 Dec 2014 13:36:29 -0500 Subject: [PATCH] webserve.py has no attribute 'MainHandler' MainHandler was renamed to WebHandler --- sickbeard/webapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index b134d84d..0d951bac 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -67,7 +67,7 @@ result_type_map = {RESULT_SUCCESS: "success", } # basically everything except RESULT_SUCCESS / success is bad -class Api(webserve.MainHandler): +class Api(webserve.WebHandler): """ api class that returns json results """ version = 4 # use an int since float-point is unpredictible intent = 4 @@ -2311,7 +2311,7 @@ class CMD_ShowDelete(ApiCall): if sickbeard.USE_TRAKT and sickbeard.TRAKT_SYNC: # remove show from trakt.tv library sickbeard.traktCheckerScheduler.action.removeShowFromTraktLibrary(showObj) - + showObj.deleteShow(bool(self.removefiles)) return _responds(RESULT_SUCCESS, msg=str(showObj.name) + " has been deleted")