Change airdateModifyStamp to handle hour that is "00:00".

This commit is contained in:
JackDandy 2014-11-20 18:35:14 +00:00
parent 9a3fcf9920
commit b92eecb41b
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@
* Update Requests library 2.3.0 to 2.4.3 (9dc6602)
* Change suppress HTTPS verification InsecureRequestWarning as many sites use self-certified certificates
* Fix API endpoint Episode.SetStatus to "Wanted"
* Change airdateModifyStamp to handle hour that is "00:00"
[develop changelog]

View file

@ -2494,7 +2494,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)