small changes to progress dialog and working of restart message
This commit is contained in:
parent
960cec8163
commit
7c7b4b375f
3 changed files with 8 additions and 18 deletions
|
@ -136,7 +136,7 @@ class LibrarySync():
|
|||
#initiate library update and wait for finish before processing any updates
|
||||
if updateNeeded:
|
||||
if(pDialog != None):
|
||||
pDialog.update(0, "Processing Movie Updates", "Importing STRM Files")
|
||||
pDialog.update(0, "Processing New Items", "Importing STRM Files")
|
||||
|
||||
if(pDialog != None and type(pDialog) == xbmcgui.DialogProgressBG):
|
||||
pDialog.close()
|
||||
|
@ -408,18 +408,8 @@ class LibrarySync():
|
|||
|
||||
#initiate library update and wait for finish before processing any updates
|
||||
if updateNeeded:
|
||||
if(pDialog != None and type(pDialog) == xbmcgui.DialogProgressBG):
|
||||
pDialog.close()
|
||||
|
||||
self.doKodiLibraryUpdate(False, pDialog)
|
||||
updateNeeded = False
|
||||
|
||||
if(pDialog != None and type(pDialog) == xbmcgui.DialogProgressBG):
|
||||
pDialog.create('Sync DB', 'Sync DB')
|
||||
|
||||
|
||||
#initiate library update and wait for finish before processing any updates
|
||||
if updateNeeded:
|
||||
if(pDialog != None):
|
||||
pDialog.update(0, "Processing New Items", "Importing STRM Files")
|
||||
|
||||
if(pDialog != None and type(pDialog) == xbmcgui.DialogProgressBG):
|
||||
pDialog.close()
|
||||
|
|
|
@ -70,7 +70,7 @@ def checkKodiSources():
|
|||
rebootRequired = KodiAdvancedSettingsCheck()
|
||||
|
||||
if rebootRequired:
|
||||
ret = xbmcgui.Dialog().yesno(heading="Emby Sync service", line1="A restart of Kodi is needed to apply changes.", line2="Synchronisation will not start before the reboot.", line3="Do you want to reboot now ?")
|
||||
ret = xbmcgui.Dialog().yesno(heading="Emby Sync service", line1="A restart of Kodi is needed to apply changes.", line2="Synchronisation will not start before the restart.", line3="Do you want to restart now?")
|
||||
if ret:
|
||||
xbmc.executebuiltin("RestartApp")
|
||||
else:
|
||||
|
|
|
@ -144,7 +144,7 @@ class WriteKodiDB():
|
|||
# if there were movies changes then send the update via JSONRPC
|
||||
if(len(params) > 0):
|
||||
changes |= True
|
||||
utils.logMsg("UpdateMovieParams", str(params), level = 0)
|
||||
utils.logMsg("UpdateMovieParams", str(params), level = 2)
|
||||
jsoncommand = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": { "movieid": %i, %s}, "id": 1 }'
|
||||
paramString = ""
|
||||
paramLen = len(params)
|
||||
|
@ -154,7 +154,7 @@ class WriteKodiDB():
|
|||
if(x < paramLen-1):
|
||||
paramString += ", "
|
||||
jsoncommand = jsoncommand %(KodiItem['movieid'], paramString)
|
||||
utils.logMsg("executeJSONRPC : ", jsoncommand, level = 0)
|
||||
utils.logMsg("executeJSONRPC : ", jsoncommand, level = 2)
|
||||
xbmc.sleep(sleepVal)
|
||||
result = xbmc.executeJSONRPC(jsoncommand)
|
||||
|
||||
|
|
Loading…
Reference in a new issue