mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
WebApi addshow and add existing fixes
This commit is contained in:
parent
c86bb23c01
commit
97088b3453
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue