Last one, promise!

Makes seeking reflect more accurately. I found that why the type the
reportplayback is called, the service loop didn't update the
currentPosition yet.
This commit is contained in:
angelblue05 2015-05-16 03:35:37 -05:00
parent fba461083d
commit 4446bcd313

View file

@ -208,6 +208,11 @@ class Player( xbmc.Player ):
def onPlayBackSeek( self, time, seekOffset ): def onPlayBackSeek( self, time, seekOffset ):
self.logMsg("PLAYBACK_SEEK",2) self.logMsg("PLAYBACK_SEEK",2)
# Make position when seeking a bit more accurate
playTime = xbmc.Player().getTime()
currentFile = xbmc.Player().getPlayingFile()
if(self.played_information.get(currentFile) != None):
self.played_information[currentFile]["currentPosition"] = playTime
self.reportPlayback() self.reportPlayback()
def onPlayBackStarted( self ): def onPlayBackStarted( self ):