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

@@ -222,6 +222,12 @@ def run(item=None):
# Special action for findvideos, where the plugin looks for known urls # Special action for findvideos, where the plugin looks for known urls
elif item.action == "findvideos": elif item.action == "findvideos":
from core import servertools from core import servertools
from core import db
if db['OnPlay'].get('addon', False):
item.autoplay = True
platformtools.fakeVideo()
db.close()
# First checks if channel has a "findvideos" function # First checks if channel has a "findvideos" function
if hasattr(channel, 'findvideos'): if hasattr(channel, 'findvideos'):

View File

@@ -400,7 +400,16 @@ class AddonMonitor(xbmc.Monitor):
self.settings_pre = config.get_all_settings_addon() self.settings_pre = config.get_all_settings_addon()
def onNotification(self, sender, method, data): 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) xbmc_videolibrary.set_watched_on_kod(data)
logger.debug('AGGIORNO') logger.debug('AGGIORNO')