This commit is contained in:
deathbybandaid 2020-12-05 15:05:43 -05:00
parent 2fbc5c610e
commit c92710cd4a

View File

@ -13,12 +13,15 @@ class OriginEPG():
def update_epg(self, fhdhr_channels):
programguide = {}
datestrings = []
timestamps = []
todaydate = datetime.date.today()
for x in range(0, 6):
xdate = todaydate + datetime.timedelta(days=x)
xtdate = xdate + datetime.timedelta(days=1)
datestrings.append(str(xdate))
for hour in range(0, 24):
time_start = datetime.datetime.combine(xdate, datetime.time(hour, 0))
if hour + 1 < 24:
@ -49,10 +52,6 @@ class OriginEPG():
epgname = c["origin_id"]
if "pst" in c["origin_id"]:
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())
if c["origin_id"] in ["est", "pst"]:
schedule_name = "Toonami Aftermath"