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)