mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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,10 +385,15 @@ class Player(xbmc.Player):
|
||||||
log.debug("PLAYBACK_SEEK: %s" % currentFile)
|
log.debug("PLAYBACK_SEEK: %s" % currentFile)
|
||||||
|
|
||||||
if self.played_info.get(currentFile):
|
if self.played_info.get(currentFile):
|
||||||
position = self.xbmcplayer.getTime()
|
position = None
|
||||||
self.played_info[currentFile]['currentPosition'] = position
|
try:
|
||||||
|
position = self.xbmcplayer.getTime()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
self.reportPlayback()
|
if position is not None:
|
||||||
|
self.played_info[currentFile]['currentPosition'] = position
|
||||||
|
self.reportPlayback()
|
||||||
|
|
||||||
@log_error()
|
@log_error()
|
||||||
def onPlayBackStopped(self):
|
def onPlayBackStopped(self):
|
||||||
|
|
Loading…
Reference in a new issue