mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
only set progress if we could get the position
This commit is contained in:
parent
774700bdc8
commit
26a4d07246
1 changed files with 8 additions and 3 deletions
|
@ -385,9 +385,14 @@ class Player(xbmc.Player):
|
|||
log.debug("PLAYBACK_SEEK: %s" % currentFile)
|
||||
|
||||
if self.played_info.get(currentFile):
|
||||
position = None
|
||||
try:
|
||||
position = self.xbmcplayer.getTime()
|
||||
self.played_info[currentFile]['currentPosition'] = position
|
||||
except:
|
||||
pass
|
||||
|
||||
if position is not None:
|
||||
self.played_info[currentFile]['currentPosition'] = position
|
||||
self.reportPlayback()
|
||||
|
||||
@log_error()
|
||||
|
|
Loading…
Reference in a new issue