mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
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
|
||||
|
||||
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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue