mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
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:
parent
fba461083d
commit
4446bcd313
1 changed files with 5 additions and 0 deletions
|
@ -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 ):
|
||||||
|
|
Loading…
Reference in a new issue