Add missing default.py option
This commit is contained in:
parent
875d704e5a
commit
20c1c6e502
1 changed files with 16 additions and 1 deletions
17
default.py
17
default.py
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue