Runloop
This commit is contained in:
parent
c88be2df6c
commit
a6e7c56ad6
@ -30,8 +30,13 @@ def main():
|
||||
response = requests.get("{}/queue?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode()
|
||||
response = listfromAPI(response)
|
||||
if response == None: return
|
||||
if len(response) <= 1:
|
||||
if len(response) == 1:
|
||||
sendUpdate(response[0])
|
||||
requests.get("{}/clear?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
while True:
|
||||
main()
|
||||
sleep(10)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user