mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
add messaging to sync thread exit
This commit is contained in:
parent
faa376a520
commit
3c9aa10587
1 changed files with 9 additions and 1 deletions
|
@ -1058,8 +1058,16 @@ class LibrarySync(threading.Thread):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.run_internal()
|
||||||
|
except Exception as e:
|
||||||
|
xbmcgui.Dialog().ok("Emby for Kodi", "Library sync thread has exited!", "You should restart Kodi now.", "Please report this on the forum.")
|
||||||
|
raise
|
||||||
|
|
||||||
|
def run_internal(self):
|
||||||
|
|
||||||
startupComplete = False
|
startupComplete = False
|
||||||
kodiProfile = xbmc.translatePath("special://profile")
|
kodiProfile = xbmc.translatePath("special://profile")
|
||||||
|
|
Loading…
Reference in a new issue