mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
API now accepts either indexerid or tvdbid for backward compability with third party applications
This commit is contained in:
parent
160b4bc4cc
commit
f0cb9177fb
@ -373,6 +373,10 @@ class ApiCall(object):
|
||||
""" function to check passed params for the shorthand wrapper
|
||||
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
|
||||
orgDefault = default
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user