This commit is contained in:
deathbybandaid 2020-12-05 14:07:47 -05:00
parent b48c3854f7
commit 3a36182fa6

View File

@ -1,6 +1,5 @@
import datetime import datetime
import urllib.parse import urllib.parse
import json
class OriginEPG(): class OriginEPG():
@ -106,7 +105,8 @@ 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 = json.loads(resp) print(resp)
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 []