fixed error in incrementalsync

This commit is contained in:
Marcel van der Veldt 2015-05-08 15:46:07 +02:00
parent 25ae3cea76
commit 105d863979
1 changed files with 2 additions and 7 deletions

View File

@ -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()
@ -607,10 +605,7 @@ 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):