mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
API now accepts either indexerid or tvdbid for backward compability with third party applications
This commit is contained in:
parent
160b4bc4cc
commit
f0cb9177fb
1 changed files with 4 additions and 0 deletions
|
@ -373,6 +373,10 @@ class ApiCall(object):
|
||||||
""" function to check passed params for the shorthand wrapper
|
""" function to check passed params for the shorthand wrapper
|
||||||
and to detect missing/required param
|
and to detect missing/required param
|
||||||
"""
|
"""
|
||||||
|
# Fix for applications that send tvdbid instead of indexerid
|
||||||
|
if key == "indexerid" and "indexerid" not in kwargs:
|
||||||
|
key = "tvdbid"
|
||||||
|
|
||||||
missing = True
|
missing = True
|
||||||
orgDefault = default
|
orgDefault = default
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue