This commit is contained in:
deathbybandaid 2020-12-16 08:19:06 -05:00
parent 5540a7f514
commit f730e9e00c

View File

@ -291,7 +291,7 @@ class EPG():
self.fhdhr.logger.info("Wrote " + epgtypename + " EPG cache.") self.fhdhr.logger.info("Wrote " + epgtypename + " EPG cache.")
def run(self): def run(self):
time.sleep(1800) # time.sleep(1800)
try: try:
while True: while True:
for epg_method in self.epg_methods: for epg_method in self.epg_methods:
@ -301,6 +301,7 @@ class EPG():
updatetheepg = True updatetheepg = True
elif time.time() >= (last_update_time + self.sleeptime[epg_method]): elif time.time() >= (last_update_time + self.sleeptime[epg_method]):
updatetheepg = True updatetheepg = True
updatetheepg = True
if updatetheepg: if updatetheepg:
try: try:
self.fhdhr.web.session.get(self.epg_update_url, timeout=0.0000000001) self.fhdhr.web.session.get(self.epg_update_url, timeout=0.0000000001)