diff --git a/bin/__pycache__/servercoms.cpython-310.pyc b/bin/__pycache__/servercoms.cpython-310.pyc index c42b98f..ac07f87 100644 Binary files a/bin/__pycache__/servercoms.cpython-310.pyc and b/bin/__pycache__/servercoms.cpython-310.pyc differ diff --git a/bin/servercoms.py b/bin/servercoms.py index 774664f..5213a5a 100644 --- a/bin/servercoms.py +++ b/bin/servercoms.py @@ -47,11 +47,13 @@ class ServerComs: return False def getfullscreeninfo(self, url): + print("fullscreencheck") try: self.x = requests.get(f"{url}/fullscreen") - except Exception: - pass - return self.x.text + return self.x.text + except Exception as e: + print(e) + return "False" def poststatus(self, url, isalive): print("updating status") diff --git a/musicplayer.py b/musicplayer.py index 3c65614..4460b91 100755 --- a/musicplayer.py +++ b/musicplayer.py @@ -145,7 +145,8 @@ class Home(MDScreen): self.manager.transition.direction = "left" else: self.openpathfpu() - except: + except Exception as e: + print(e) self.ivpathpu() def openpathmpu(self): @@ -225,7 +226,7 @@ class Main(MDScreen): if address != "": self.ids.connectstatus.text = f"Connected to: {address}" svc.poststatus(address, True) - if svc.getfullscreeninfo == "True": + if svc.getfullscreeninfo(address) == "True": self.ids.fullscreenc.text = "Exit fullscreen on client display" else: self.ids.fullscreenc.text = 'Enter fullscreen on client display'