test
This commit is contained in:
parent
ac9222c31e
commit
f5514fd41c
@ -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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user