1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

WebApi addshow and add existing fixes

This commit is contained in:
joshjowen 2014-04-26 09:39:53 +10:00
parent c86bb23c01
commit 97088b3453

View File

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