From 97088b34537a30d01dffe15d3fa940b1e22e67b2 Mon Sep 17 00:00:00 2001 From: joshjowen Date: Sat, 26 Apr 2014 09:39:53 +1000 Subject: [PATCH] WebApi addshow and add existing fixes --- sickbeard/webapi.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index 782e7640..9d749a05 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -1800,6 +1800,9 @@ class CMD_ShowAddExisting(ApiCall): elif "tvrageid" in args or "tvrageid" in kwargs: _INDEXER_INT = 2 _INDEXER = "tvrageid" + else: + _INDEXER_INT = None + _INDEXER = None # required self.indexerid, args = self.check_params(args, kwargs, _INDEXER, None, True, "int", []) self.indexer = _INDEXER_INT @@ -1897,6 +1900,9 @@ class CMD_ShowAddNew(ApiCall): elif "tvrageid" in args or "tvrageid" in kwargs: _INDEXER_INT = 2 _INDEXER = "tvrageid" + else: + _INDEXER_INT = None + _INDEXER = None # required self.indexerid, args = self.check_params(args, kwargs, _INDEXER, None, True, "int", []) self.indexer = _INDEXER_INT