mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Seek playback
Reflect more accurately in the dashboard
This commit is contained in:
parent
52994a65a2
commit
7454b022f7
1 changed files with 7 additions and 0 deletions
|
@ -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 ):
|
||||
|
|
Loading…
Reference in a new issue