test
This commit is contained in:
parent
2fbc5c610e
commit
c92710cd4a
@ -13,12 +13,15 @@ class OriginEPG():
|
|||||||
def update_epg(self, fhdhr_channels):
|
def update_epg(self, fhdhr_channels):
|
||||||
programguide = {}
|
programguide = {}
|
||||||
|
|
||||||
|
datestrings = []
|
||||||
timestamps = []
|
timestamps = []
|
||||||
todaydate = datetime.date.today()
|
todaydate = datetime.date.today()
|
||||||
for x in range(0, 6):
|
for x in range(0, 6):
|
||||||
xdate = todaydate + datetime.timedelta(days=x)
|
xdate = todaydate + datetime.timedelta(days=x)
|
||||||
xtdate = xdate + datetime.timedelta(days=1)
|
xtdate = xdate + datetime.timedelta(days=1)
|
||||||
|
|
||||||
|
datestrings.append(str(xdate))
|
||||||
|
|
||||||
for hour in range(0, 24):
|
for hour in range(0, 24):
|
||||||
time_start = datetime.datetime.combine(xdate, datetime.time(hour, 0))
|
time_start = datetime.datetime.combine(xdate, datetime.time(hour, 0))
|
||||||
if hour + 1 < 24:
|
if hour + 1 < 24:
|
||||||
@ -49,10 +52,6 @@ class OriginEPG():
|
|||||||
epgname = c["origin_id"]
|
epgname = c["origin_id"]
|
||||||
if "pst" in c["origin_id"]:
|
if "pst" in c["origin_id"]:
|
||||||
epgname = c["origin_id"].replace("pst", "est")
|
epgname = c["origin_id"].replace("pst", "est")
|
||||||
datestrings = []
|
|
||||||
for x in range(0, 6):
|
|
||||||
xdate = todaydate + datetime.timedelta(days=x)
|
|
||||||
datestrings.append(xdate)
|
|
||||||
datestring = str(datetime.date.today())
|
datestring = str(datetime.date.today())
|
||||||
if c["origin_id"] in ["est", "pst"]:
|
if c["origin_id"] in ["est", "pst"]:
|
||||||
schedule_name = "Toonami Aftermath"
|
schedule_name = "Toonami Aftermath"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user