test
This commit is contained in:
parent
4b7e2f0292
commit
c8a32480ec
@ -67,9 +67,9 @@ class OriginEPG():
|
|||||||
(self.media_url, schedulename_quote, datestring))
|
(self.media_url, schedulename_quote, datestring))
|
||||||
epgguide.extend(self.get_cached(epgname, todaydate, schedule_url))
|
epgguide.extend(self.get_cached(epgname, todaydate, schedule_url))
|
||||||
|
|
||||||
offset = '+0000'
|
offset = '+00:00'
|
||||||
if "pst" in c["origin_id"]:
|
if "pst" in c["origin_id"]:
|
||||||
offset = '-0300'
|
offset = '-03:00'
|
||||||
|
|
||||||
progindex = 0
|
progindex = 0
|
||||||
for program_dict in epgguide:
|
for program_dict in epgguide:
|
||||||
@ -154,12 +154,9 @@ class OriginEPG():
|
|||||||
return duration
|
return duration
|
||||||
|
|
||||||
def xmltimestamp_toonami(self, inputtime, offset):
|
def xmltimestamp_toonami(self, inputtime, offset):
|
||||||
xmltime = inputtime.replace('Z', '+00:00')
|
xmltime = inputtime.replace('Z', offset)
|
||||||
xmltime = datetime.datetime.fromisoformat(xmltime)
|
xmltime = datetime.datetime.fromisoformat(xmltime)
|
||||||
xmltime = xmltime.strftime('%Y%m%d%H%M%S %z')
|
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
|
return xmltime
|
||||||
|
|
||||||
def get_prog_timedict(self, starttime, endtime, offset):
|
def get_prog_timedict(self, starttime, endtime, offset):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user