added window prop to force refresh widgets if content has changed

This commit is contained in:
Marcel van der Veldt 2015-06-24 09:03:49 +02:00
parent b6f70fc5bf
commit d617aa13ac
1 changed files with 5 additions and 1 deletions

View File

@ -115,6 +115,9 @@ class LibrarySync():
# set prop to show we have run for the first time
WINDOW.setProperty("startup", "done")
# tell any widgets to refresh because the content has changed
WINDOW.setProperty("widgetreload", datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
finally:
WINDOW.setProperty("SyncDatabaseRunning", "false")
utils.logMsg("Sync DB", "syncDatabase Exiting", 0)
@ -625,9 +628,10 @@ class LibrarySync():
cursor.close()
finally:
xbmc.executebuiltin("UpdateLibrary(video)")
WINDOW.setProperty("SyncDatabaseRunning", "false")
# tell any widgets to refresh because the content has changed
WINDOW.setProperty("widgetreload", datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
def ShouldStop(self):