Fix Riproduzione da Informazioni

This commit is contained in:
Alhaziel01
2021-11-24 16:50:11 +01:00
parent cbccf06cc5
commit bd4cca09ba
2 changed files with 16 additions and 1 deletions

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')