This commit is contained in:
deathbybandaid 2020-12-05 15:01:13 -05:00
parent 4b7e2f0292
commit c8a32480ec

View File

@ -67,9 +67,9 @@ class OriginEPG():
(self.media_url, schedulename_quote, datestring))
epgguide.extend(self.get_cached(epgname, todaydate, schedule_url))
offset = '+0000'
offset = '+00:00'
if "pst" in c["origin_id"]:
offset = '-0300'
offset = '-03:00'
progindex = 0
for program_dict in epgguide:
@ -154,12 +154,9 @@ class OriginEPG():
return duration
def xmltimestamp_toonami(self, inputtime, offset):
xmltime = inputtime.replace('Z', '+00:00')
xmltime = inputtime.replace('Z', offset)
xmltime = datetime.datetime.fromisoformat(xmltime)
xmltime = xmltime.strftime('%Y%m%d%H%M%S %z')
xmltime = str(xmltime).replace('+00:00', offset)
if not xmltime.endswith('+00:00'):
print(xmltime)
return xmltime
def get_prog_timedict(self, starttime, endtime, offset):