test
This commit is contained in:
parent
ac9222c31e
commit
f5514fd41c
@ -8,9 +8,6 @@ class Startup_Tasks():
|
||||
def __init__(self, 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):
|
||||
return self.get(*args)
|
||||
|
||||
@ -25,9 +22,9 @@ class Startup_Tasks():
|
||||
updatechannels = True
|
||||
|
||||
if updatechannels:
|
||||
self.fhdhr.api.client.get(self.channel_update_url)
|
||||
self.fhdhr.api.client.get("/api/channels?method=scan")
|
||||
|
||||
# Hit EPG Update API
|
||||
self.fhdhr.api.client.get(self.epg_update_url)
|
||||
self.fhdhr.api.client.get("/api/epg?method=update")
|
||||
|
||||
return "Success"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user