test
This commit is contained in:
parent
57e0a6a88a
commit
ac9222c31e
@ -16,7 +16,7 @@ class Startup_Tasks():
|
|||||||
|
|
||||||
def get(self, *args):
|
def get(self, *args):
|
||||||
|
|
||||||
# Hit Channel Update API URL without waiting unless we've never scanned before
|
# Hit Channel Update API
|
||||||
haseverscanned = self.fhdhr.db.get_fhdhr_value("channels", "scanned_time")
|
haseverscanned = self.fhdhr.db.get_fhdhr_value("channels", "scanned_time")
|
||||||
updatechannels = False
|
updatechannels = False
|
||||||
if not haseverscanned:
|
if not haseverscanned:
|
||||||
@ -25,9 +25,9 @@ class Startup_Tasks():
|
|||||||
updatechannels = True
|
updatechannels = True
|
||||||
|
|
||||||
if updatechannels:
|
if updatechannels:
|
||||||
self.fhdhr.api.client.get(self.channel_update_url, timeout=0.0000000001)
|
self.fhdhr.api.client.get(self.channel_update_url)
|
||||||
|
|
||||||
# Hit EPG Update API URL without waiting
|
# Hit EPG Update API
|
||||||
self.fhdhr.api.client.get(self.epg_update_url, timeout=0.0000000001)
|
self.fhdhr.api.client.get(self.epg_update_url)
|
||||||
|
|
||||||
return "Success"
|
return "Success"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user