diff --git a/fHDHR/origin/origin_epg.py b/fHDHR/origin/origin_epg.py index 4ae9b93..e9fe899 100644 --- a/fHDHR/origin/origin_epg.py +++ b/fHDHR/origin/origin_epg.py @@ -146,14 +146,12 @@ class OriginEPG(): return xmltime def get_prog_timedict(self, starttime, endtime): - "2020-12-05T00:01:00.098Z" - "2020-11-22T00:00:00.000Z" print(self.xmltimestamp_toonami(starttime)) timedict = { - "time_start": None, - "time_end": None, - "duration": None + "time_start": self.xmltimestamp_toonami(starttime), + "time_end": self.xmltimestamp_toonami(endtime) } + timedict["duration"] = (timedict["time_end"] - timedict["time_start"]) return timedict def get_cached(self, jsonid, cache_key, url):