some more changes to the playback
This commit is contained in:
parent
bc09e570fd
commit
367b658a29
2 changed files with 7 additions and 2 deletions
|
@ -27,7 +27,8 @@ except:
|
||||||
id=None
|
id=None
|
||||||
|
|
||||||
if mode != None and mode == "play":
|
if mode != None and mode == "play":
|
||||||
xbmcplugin.endOfDirectory(int(sys.argv[1]),True,False,True)
|
listItem = xbmcgui.ListItem(path="")
|
||||||
|
xbmcplugin.setResolvedUrl (int(sys.argv[1]), True, listItem)
|
||||||
WINDOW.setProperty('GUIPLAY', str(id)) # set window prop
|
WINDOW.setProperty('GUIPLAY', str(id)) # set window prop
|
||||||
elif sys.argv[1] == "reset":
|
elif sys.argv[1] == "reset":
|
||||||
utils.reset()
|
utils.reset()
|
||||||
|
|
|
@ -204,7 +204,11 @@ class Player( xbmc.Player ):
|
||||||
self.stopAll()
|
self.stopAll()
|
||||||
|
|
||||||
if xbmcplayer.isPlaying():
|
if xbmcplayer.isPlaying():
|
||||||
currentFile = xbmcplayer.getPlayingFile()
|
|
||||||
|
currentFile = ""
|
||||||
|
try:
|
||||||
|
currentFile = xbmcplayer.getPlayingFile()
|
||||||
|
except: pass
|
||||||
self.logMsg("onPlayBackStarted: %s" % currentFile, 0)
|
self.logMsg("onPlayBackStarted: %s" % currentFile, 0)
|
||||||
|
|
||||||
# we may need to wait until the info is available
|
# we may need to wait until the info is available
|
||||||
|
|
Loading…
Reference in a new issue