From dad75ae09b5f913dcea8dbc89dcd13b2c93464fc Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Fri, 2 May 2014 13:01:42 +0200 Subject: [PATCH] Indent fixes --- sickbeard/webapi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index 8115f98a..f7514952 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -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)