Prevent error trying to refresh nodes

If server is offline.
This commit is contained in:
angelblue05 2016-10-20 03:59:01 -05:00
parent 9b6886ac4a
commit 2a3428378b

View file

@ -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: