almost-stable-V2.0

This commit is contained in:
janis
2022-10-30 19:05:49 +01:00
parent 14d9620ab8
commit 52a15342e5
16 changed files with 185 additions and 34 deletions

View File

@@ -39,10 +39,24 @@ class ServerComs:
except Exception:
return False
def postfullscreen(self, url, data):
def changefullscreen(self, url):
try:
self.x = requests.post(f"{url}/postfullscreen", {"fullscreen":data})
self.x = requests.get(f"{url}/changefullscreen")
return True
except Exception:
return False
def getfullscreeninfo(self, url):
try:
self.x = requests.get(f"{url}/changefullscreen")
except Exception:
pass
return self.x.text
def poststatus(self, url, isalive):
print("updating status")
try:
self.x = requests.post(f"{url}/poststatus", {"status":f"{isalive}"})
return True
except Exception:
return False