Indent fixes

This commit is contained in:
Nils Vogels 2014-05-02 13:01:42 +02:00
parent 9b5cfbb731
commit dad75ae09b

View file

@ -373,10 +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
# Fix for applications that send tvdbid instead of indexerid
if key == "indexerid" and "indexerid" not in kwargs:
key = "tvdbid"
missing = True
orgDefault = default
@ -803,7 +803,7 @@ class CMD_ComingEpisodes(ApiCall):
ep["airs"] = str(ep["airs"]).replace('am', ' AM').replace('pm', ' PM').replace(' ', ' ')
# start day of the week on 1 (monday)
ep["weekday"] = 1 + datetime.date.fromordinal(ordinalAirdate).weekday()
# Add tvdbid for backward compability
# Add tvdbid for backward compability
ep["tvdbid"] = ep['indexerid']
# TODO: check if this obsolete
@ -1170,7 +1170,7 @@ class CMD_History(ApiCall):
_rename_element(row, "showid", "indexerid")
row["resource_path"] = os.path.dirname(row["resource"])
row["resource"] = os.path.basename(row["resource"])
# Add tvdbid for backward compability
# Add tvdbid for backward compability
row['tvdbid'] = row['indexerid']
results.append(row)