This commit is contained in:
deathbybandaid 2020-12-16 09:41:02 -05:00
parent ac9222c31e
commit f5514fd41c

View File

@ -8,9 +8,6 @@ class Startup_Tasks():
def __init__(self, fhdhr): def __init__(self, fhdhr):
self.fhdhr = fhdhr self.fhdhr = fhdhr
self.epg_update_url = "%s/api/epg?method=update" % (self.fhdhr.api.base)
self.channel_update_url = "%s/api/channels?method=scan" % (self.fhdhr.api.base)
def __call__(self, *args): def __call__(self, *args):
return self.get(*args) return self.get(*args)
@ -25,9 +22,9 @@ class Startup_Tasks():
updatechannels = True updatechannels = True
if updatechannels: if updatechannels:
self.fhdhr.api.client.get(self.channel_update_url) self.fhdhr.api.client.get("/api/channels?method=scan")
# Hit EPG Update API # Hit EPG Update API
self.fhdhr.api.client.get(self.epg_update_url) self.fhdhr.api.client.get("/api/epg?method=update")
return "Success" return "Success"