Seek playback

Reflect more accurately in the dashboard
This commit is contained in:
angelblue05 2015-05-16 03:52:30 -05:00
parent 52994a65a2
commit 7454b022f7

View file

@ -208,6 +208,13 @@ 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
except: pass
self.reportPlayback()
def onPlayBackStarted( self ):