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(): def addUser():
if window('emby_online') != "true": if window('emby_online') != "true":
log.info("server is offline")
return return
doUtils = downloadutils.DownloadUtils() doUtils = downloadutils.DownloadUtils()
@ -534,6 +535,10 @@ def getThemeMedia():
##### REFRESH EMBY PLAYLISTS ##### ##### REFRESH EMBY PLAYLISTS #####
def refreshPlaylist(): def refreshPlaylist():
if window('emby_online') != "true":
log.info("server is offline")
return
lib = librarysync.LibrarySync() lib = librarysync.LibrarySync()
dialog = xbmcgui.Dialog() dialog = xbmcgui.Dialog()
try: try: