mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Fixed backlog webapi issue
This commit is contained in:
parent
a18c72f2ea
commit
47ef5bf2b2
@ -2497,7 +2497,7 @@ class TVEpisode(object):
|
||||
if airs:
|
||||
hr = int(airs.group(1))
|
||||
hr = (12 + hr, hr)[None is airs.group(3)]
|
||||
hr = (hr, hr - 12)[0 == hr % 12]
|
||||
hr = (hr, hr - 12)[0 == hr % 12 and 0 != hr]
|
||||
min = int((airs.group(2), min)[None is airs.group(2)])
|
||||
airtime = datetime.time(hr, min)
|
||||
|
||||
|
@ -985,7 +985,7 @@ class CMD_EpisodeSetStatus(ApiCall):
|
||||
with epObj.lock:
|
||||
if self.status == WANTED:
|
||||
# figure out what episodes are wanted so we can backlog them
|
||||
if epObj.season in ep_segment:
|
||||
if epObj.season in segments:
|
||||
segments[epObj.season].append(epObj)
|
||||
else:
|
||||
segments[epObj.season] = [epObj]
|
||||
|
Loading…
Reference in New Issue
Block a user