API now accepts either indexerid or tvdbid for backward compability with third party applications

This commit is contained in:
root 2014-04-28 15:59:01 +02:00
parent 160b4bc4cc
commit f0cb9177fb

View file

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