Add missing default.py option

This commit is contained in:
croneter 2019-04-06 13:55:44 +02:00
parent 875d704e5a
commit 20c1c6e502

View file

@ -39,7 +39,22 @@ class Main():
mode = params.get('mode', '')
itemid = params.get('id', '')
if mode == 'play':
if mode == 'playstrm':
while not utils.window('plex.playlist.play'):
xbmc.sleep(50)
if utils.window('plex.playlist.aborted'):
LOG.info("playback aborted")
break
else:
LOG.info("Playback started")
xbmcplugin.setResolvedUrl(int(argv[1]),
False,
xbmcgui.ListItem())
utils.window('plex.playlist.play', clear=True)
utils.window('plex.playlist.ready', clear=True)
utils.window('plex.playlist.aborted', clear=True)
elif mode == 'play':
self.play()
elif mode == 'plex_node':