mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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():
|
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:
|
||||||
|
|
Loading…
Reference in a new issue