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

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()
@ -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):