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:
parent
c86bb23c01
commit
97088b3453
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user