This commit is contained in:
deathbybandaid 2020-12-05 14:46:06 -05:00
parent 911cab890d
commit 1df65f653e

View File

@ -146,14 +146,12 @@ class OriginEPG():
return xmltime return xmltime
def get_prog_timedict(self, starttime, endtime): def get_prog_timedict(self, starttime, endtime):
"2020-12-05T00:01:00.098Z"
"2020-11-22T00:00:00.000Z"
print(self.xmltimestamp_toonami(starttime)) print(self.xmltimestamp_toonami(starttime))
timedict = { timedict = {
"time_start": None, "time_start": self.xmltimestamp_toonami(starttime),
"time_end": None, "time_end": self.xmltimestamp_toonami(endtime)
"duration": None
} }
timedict["duration"] = (timedict["time_end"] - timedict["time_start"])
return timedict return timedict
def get_cached(self, jsonid, cache_key, url): def get_cached(self, jsonid, cache_key, url):