some more changes to the playback

This commit is contained in:
Marcel van der Veldt 2015-05-02 18:36:06 +02:00
parent bc09e570fd
commit 367b658a29
2 changed files with 7 additions and 2 deletions

View file

@ -27,7 +27,8 @@ except:
id=None
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
elif sys.argv[1] == "reset":
utils.reset()

View file

@ -204,7 +204,11 @@ class Player( xbmc.Player ):
self.stopAll()
if xbmcplayer.isPlaying():
currentFile = ""
try:
currentFile = xbmcplayer.getPlayingFile()
except: pass
self.logMsg("onPlayBackStarted: %s" % currentFile, 0)
# we may need to wait until the info is available