almost-stable-V2.0
This commit is contained in:
@@ -29,7 +29,7 @@ class Com:
|
||||
self.x = requests.get(f"{url}/songmaxlength")
|
||||
except Exception:
|
||||
return 100
|
||||
return int(self.x.text)
|
||||
return float(self.x.text)
|
||||
|
||||
def getupcomingsongs(self, url):
|
||||
try:
|
||||
@@ -43,7 +43,7 @@ class Com:
|
||||
self.x = requests.get(f"{url}/playbackpos")
|
||||
except Exception:
|
||||
return 0
|
||||
return int(self.x.text)
|
||||
return float(self.x.text)
|
||||
|
||||
def checkiffullscreen(self, url):
|
||||
try:
|
||||
@@ -52,5 +52,15 @@ class Com:
|
||||
return False
|
||||
if self.x.text == "True":
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def checkgo(self, url):
|
||||
try:
|
||||
self.x = requests.get(f"{url}/isrunning")
|
||||
except Exception:
|
||||
return False
|
||||
if self.x.text == "True":
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
Reference in New Issue
Block a user