Fix Rai Play e altri piccoli fix

This commit is contained in:
Alhaziel01
2021-02-05 12:27:49 +01:00
parent 213a573d10
commit 709cb616e7
6 changed files with 48 additions and 27 deletions

View File

@@ -200,6 +200,7 @@ def run(item=None):
if hasattr(channel, 'play'):
logger.debug("Executing channel 'play' method")
itemlist = channel.play(item)
if not itemlist: return
b_favourite = item.isFavourite
# Play should return a list of playable URLS
if len(itemlist) > 0 and isinstance(itemlist[0], Item):

View File

@@ -1462,7 +1462,7 @@ def prevent_busy(item):
if not item.autoplay and not item.window:
if item.globalsearch: xbmc.Player().play(os.path.join(config.get_runtime_path(), "resources", "kod.mp4"))
else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
xbmc.sleep(100)
xbmc.sleep(200)
xbmc.Player().stop()
# xbmc.executebuiltin('Action(Stop)')
# xbmc.sleep(500)