Fix Login and add more things to hero slider

This commit is contained in:
Prayag committed 2022-04-11 23:06:35 +05:30
1 parent c64d951df4
commit 0d93e18457
6 files changed
+645 -582

No files matched your search

+8 -7
View File
@@ -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"