Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ad76560ed | ||
|
|
d6f449930c | ||
|
|
ebdf501115 | ||
|
|
34861fb9b9 |
@@ -1,8 +1,8 @@
|
||||
version: '0.5.4'
|
||||
version: '0.5.5'
|
||||
changelog: |-
|
||||
Bug Fixes
|
||||
---------
|
||||
+ Fix sys.argv comparison (#189) @mcarlton00
|
||||
+ Ensure a handle is valid before trying to use it to start playback (#194) @mcarlton00
|
||||
dependencies:
|
||||
py2:
|
||||
- addon: 'xbmc.python'
|
||||
|
||||
@@ -458,11 +458,14 @@ def play_file(play_info):
|
||||
playlist.add(playurl, list_item)
|
||||
player.play(playlist)
|
||||
else:
|
||||
if len(sys.argv) > 1:
|
||||
# Play from within addon
|
||||
if len(sys.argv) > 1 and int(sys.argv[1]) > 0:
|
||||
# Play from info menu
|
||||
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, list_item)
|
||||
else:
|
||||
# Play from remote control. Doesn't have a handle, so need to call player directly
|
||||
'''
|
||||
Play from remote control or addon menus. Doesn't have a handle,
|
||||
so need to call player directly
|
||||
'''
|
||||
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
|
||||
playlist.clear()
|
||||
playlist.add(playurl, list_item)
|
||||
|
||||
Reference in New Issue
Block a user