mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Prevent error trying to refresh nodes
If server is offline.
This commit is contained in:
parent
9b6886ac4a
commit
2a3428378b
1 changed files with 5 additions and 0 deletions
|
@ -256,6 +256,7 @@ def deleteItem():
|
|||
def addUser():
|
||||
|
||||
if window('emby_online') != "true":
|
||||
log.info("server is offline")
|
||||
return
|
||||
|
||||
doUtils = downloadutils.DownloadUtils()
|
||||
|
@ -534,6 +535,10 @@ def getThemeMedia():
|
|||
##### REFRESH EMBY PLAYLISTS #####
|
||||
def refreshPlaylist():
|
||||
|
||||
if window('emby_online') != "true":
|
||||
log.info("server is offline")
|
||||
return
|
||||
|
||||
lib = librarysync.LibrarySync()
|
||||
dialog = xbmcgui.Dialog()
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue