This commit is contained in:
deathbybandaid 2020-12-05 14:07:08 -05:00
parent f9336c76ec
commit b48c3854f7

View File

@ -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 []