From b92eecb41b3aa373114fd7ae3dfc9784bbff682f Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 20 Nov 2014 18:35:14 +0000 Subject: [PATCH] Change airdateModifyStamp to handle hour that is "00:00". --- CHANGES.md | 1 + sickbeard/tv.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d0cd8b76..a6c8dcbc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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] diff --git a/sickbeard/tv.py b/sickbeard/tv.py index b690b5d0..54dbca54 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -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)