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