KoD 1.7.3

- fix vari\n\n
This commit is contained in:
marco
2021-11-27 18:08:14 +01:00
parent b0325f61d6
commit 7eebb48b89
60 changed files with 10634 additions and 630 deletions
+11 -2
View File
@@ -400,7 +400,16 @@ class AddonMonitor(xbmc.Monitor):
self.settings_pre = config.get_all_settings_addon()
def onNotification(self, sender, method, data):
if method == 'VideoLibrary.OnUpdate':
# logger.debug('METHOD', method, sender, data)
if method == 'Playlist.OnAdd':
from core import db
db['OnPlay']['addon'] = True
db.close()
elif method == 'Player.OnStop':
from core import db
db['OnPlay']['addon'] = False
db.close()
elif method == 'VideoLibrary.OnUpdate':
xbmc_videolibrary.set_watched_on_kod(data)
logger.debug('AGGIORNO')
@@ -538,7 +547,7 @@ if __name__ == "__main__":
break
if monitor.waitForAbort(1): # every second
join_threads()
# db need to be closed when not used, it will cause freezes
db.close()
join_threads()
break