From 8a22b51d8c85b030adc6159f3ea47cf8a95e325f Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 5 Dec 2020 14:57:59 -0500 Subject: [PATCH] test --- fHDHR/origin/origin_epg.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fHDHR/origin/origin_epg.py b/fHDHR/origin/origin_epg.py index ed0961c..743d792 100644 --- a/fHDHR/origin/origin_epg.py +++ b/fHDHR/origin/origin_epg.py @@ -157,13 +157,14 @@ class OriginEPG(): xmltime = inputtime.replace('Z', '+00:00') xmltime = datetime.datetime.fromisoformat(xmltime) xmltime = xmltime.strftime('%Y%m%d%H%M%S %z') + xmltime = str(xmltime).replace('+00:00', offset) print(xmltime) return xmltime def get_prog_timedict(self, starttime, endtime, offset): timedict = { - "time_start": str(self.xmltimestamp_toonami(starttime, offset)), - "time_end": str(self.xmltimestamp_toonami(endtime, offset)), + "time_start": self.xmltimestamp_toonami(starttime, offset), + "time_end": self.xmltimestamp_toonami(endtime, offset), "duration": str(int(self.toonami_calculate_duration(starttime, endtime))) } print(timedict)