1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fixed backlog webapi issue

This commit is contained in:
echel0n 2014-11-23 04:53:31 -08:00
parent a18c72f2ea
commit 47ef5bf2b2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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