mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix for multiple OnWake messages
This commit is contained in:
parent
d6a1a3e919
commit
b556707ce6
1 changed files with 5 additions and 3 deletions
|
@ -55,9 +55,11 @@ class Kodi_Monitor(xbmc.Monitor):
|
||||||
|
|
||||||
if method == "System.OnWake":
|
if method == "System.OnWake":
|
||||||
xbmc.sleep(10000) #Allow network to wake up
|
xbmc.sleep(10000) #Allow network to wake up
|
||||||
utils.logMsg("Doing_Db_Sync Post Resume: syncDatabase (Started)",1)
|
if WINDOW.getProperty("SyncDatabaseRunning") != "true":
|
||||||
libSync = LibrarySync().FullLibrarySync()
|
utils.logMsg("Doing_Db_Sync Post Resume: syncDatabase (Started)",0)
|
||||||
utils.logMsg("Doing_Db_Sync Post Resume: syncDatabase (Finished) " + str(libSync),1)
|
libSync = LibrarySync().FullLibrarySync()
|
||||||
|
utils.logMsg("Doing_Db_Sync Post Resume: syncDatabase (Finished) " + str(libSync),0)
|
||||||
|
|
||||||
|
|
||||||
if method == "VideoLibrary.OnRemove":
|
if method == "VideoLibrary.OnRemove":
|
||||||
xbmc.log('Intercepted remove from sender: ' + sender + ' method: ' + method + ' data: ' + data)
|
xbmc.log('Intercepted remove from sender: ' + sender + ' method: ' + method + ' data: ' + data)
|
||||||
|
|
Loading…
Reference in a new issue