test
This commit is contained in:
parent
a942557a6d
commit
707a566dfa
@ -52,6 +52,7 @@ class OriginEPG():
|
|||||||
datestrings = []
|
datestrings = []
|
||||||
for x in range(0, 6):
|
for x in range(0, 6):
|
||||||
xdate = todaydate + datetime.timedelta(days=x)
|
xdate = todaydate + datetime.timedelta(days=x)
|
||||||
|
print(xdate)
|
||||||
datestrings.append(xdate)
|
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"]:
|
||||||
@ -105,8 +106,7 @@ class OriginEPG():
|
|||||||
except self.fhdhr.web.exceptions.HTTPError:
|
except self.fhdhr.web.exceptions.HTTPError:
|
||||||
self.fhdhr.logger.info('Got an error! Ignoring it.')
|
self.fhdhr.logger.info('Got an error! Ignoring it.')
|
||||||
return
|
return
|
||||||
print(resp.text)
|
result = resp.json()
|
||||||
result = resp
|
|
||||||
|
|
||||||
self.fhdhr.db.set_cacheitem_value(jsonid + "_" + str(cache_key), "offline_cache", result, "origin")
|
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 []
|
cache_list = self.fhdhr.db.get_cacheitem_value("cache_list", "offline_cache", "origin") or []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user