Last one, promise!
Make seeking reflect more accurately when reporting to dashboard
This commit is contained in:
parent
c847bbbdd2
commit
513362eb2b
1 changed files with 8 additions and 1 deletions
|
@ -208,7 +208,14 @@ class Player( xbmc.Player ):
|
|||
|
||||
def onPlayBackSeek( self, time, seekOffset ):
|
||||
self.logMsg("PLAYBACK_SEEK",2)
|
||||
# Make position when seeking a bit more accurate
|
||||
try:
|
||||
playTime = xbmc.Player().getTime()
|
||||
currentFile = xbmc.Player().getPlayingFile()
|
||||
if(self.played_information.get(currentFile) != None):
|
||||
self.played_information[currentFile]["currentPosition"] = playTime
|
||||
self.reportPlayback()
|
||||
except: pass
|
||||
|
||||
def onPlayBackStarted( self ):
|
||||
# Will be called when xbmc starts playing a file
|
||||
|
|
Loading…
Reference in a new issue