Fix Login and add more things to hero slider
This commit is contained in:
6 files changed
+645
-582
No files matched your search
@@ -30,13 +30,14 @@ class Backend(QObject):
|
||||
@Slot(result=str)
|
||||
def onStartup(self):
|
||||
if storage.getItem("serverGo") == "True":
|
||||
ping = requests.get(f"{storage.getItem('server')}/System/Ping")
|
||||
if ping.content == b'"Jellyfin Server"':
|
||||
if storage.getItem("openHome") == "True":
|
||||
return "openHomeTrue"
|
||||
else:
|
||||
return "serverGoTrue"
|
||||
else:
|
||||
try:
|
||||
ping = requests.get(f"{storage.getItem('server')}/System/Ping")
|
||||
if ping.content == b'"Jellyfin Server"':
|
||||
if storage.getItem("openHome") == "True":
|
||||
return "openHomeTrue"
|
||||
else:
|
||||
return "serverGoTrue"
|
||||
except:
|
||||
return "serverOffline"
|
||||
else:
|
||||
return "serverGoFalse"
|
||||
|
||||
Reference in new issue
Block a user