mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-02 17:33:37 +00:00
Merge pull request #38 from JackDandy/feature/ChangeAirdateModifyStamp
Change airdateModifyStamp to handle hour that is "00:00".
This commit is contained in:
commit
037f2e96b2
2 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue