fixed error in incrementalsync
This commit is contained in:
parent
25ae3cea76
commit
105d863979
1 changed files with 2 additions and 7 deletions
|
@ -524,10 +524,8 @@ class LibrarySync():
|
||||||
WINDOW.setProperty("SyncDatabaseRunning", "true")
|
WINDOW.setProperty("SyncDatabaseRunning", "true")
|
||||||
|
|
||||||
#show the progress dialog
|
#show the progress dialog
|
||||||
pDialog = None
|
|
||||||
if (dbSyncIndication):
|
if (dbSyncIndication):
|
||||||
pDialog = xbmcgui.DialogProgressBG()
|
xbmcgui.Dialog().notification('Emby for Kodi', 'Performing incremental sync...', "special://home/addons/plugin.video.emby/icon.png")
|
||||||
pDialog.create('Emby for Kodi', 'Performing incremental sync...')
|
|
||||||
|
|
||||||
connection = utils.KodiSQL("video")
|
connection = utils.KodiSQL("video")
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
@ -608,9 +606,6 @@ class LibrarySync():
|
||||||
xbmc.executebuiltin("UpdateLibrary(video)")
|
xbmc.executebuiltin("UpdateLibrary(video)")
|
||||||
WINDOW.setProperty("SyncDatabaseRunning", "false")
|
WINDOW.setProperty("SyncDatabaseRunning", "false")
|
||||||
|
|
||||||
#close the progress dialog
|
|
||||||
if(pDialog != None):
|
|
||||||
pDialog.close()
|
|
||||||
|
|
||||||
def ShouldStop(self):
|
def ShouldStop(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue