This commit is contained in:
deathbybandaid 2020-12-05 14:57:59 -05:00
parent 831322e181
commit 8a22b51d8c

View File

@ -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)