mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Indent fixes
This commit is contained in:
parent
9b5cfbb731
commit
dad75ae09b
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue