This commit is contained in:
deathbybandaid 2020-12-05 14:09:33 -05:00
parent a942557a6d
commit 707a566dfa

View File

@ -52,6 +52,7 @@ class OriginEPG():
datestrings = []
for x in range(0, 6):
xdate = todaydate + datetime.timedelta(days=x)
print(xdate)
datestrings.append(xdate)
datestring = str(datetime.date.today())
if c["origin_id"] in ["est", "pst"]:
@ -105,8 +106,7 @@ class OriginEPG():
except self.fhdhr.web.exceptions.HTTPError:
self.fhdhr.logger.info('Got an error! Ignoring it.')
return
print(resp.text)
result = resp
result = resp.json()
self.fhdhr.db.set_cacheitem_value(jsonid + "_" + str(cache_key), "offline_cache", result, "origin")
cache_list = self.fhdhr.db.get_cacheitem_value("cache_list", "offline_cache", "origin") or []