test
This commit is contained in:
parent
f9336c76ec
commit
b48c3854f7
@ -1,5 +1,6 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
class OriginEPG():
|
class OriginEPG():
|
||||||
@ -105,7 +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
|
||||||
result = resp.json()
|
result = json.loads(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