From 1df65f653e4a0914e6af38679d7fab0f739abb3d Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 5 Dec 2020 14:46:06 -0500 Subject: [PATCH] test --- fHDHR/origin/origin_epg.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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):