Fix PKC telling wrong timing

This commit is contained in:
tomkat83 2016-08-10 19:36:08 +02:00
parent 5be7d835f8
commit fca249c292

View file

@ -255,7 +255,7 @@ class Player(xbmc.Player):
'SubtitleStreamIndex': postdata['SubtitleStreamIndex'], 'SubtitleStreamIndex': postdata['SubtitleStreamIndex'],
'playmethod': playMethod, 'playmethod': playMethod,
'Type': itemType, 'Type': itemType,
'currentPosition': int(seekTime) * 1000, 'currentPosition': int(seekTime),
'fileid': fileid, 'fileid': fileid,
'itemType': itemType, 'itemType': itemType,
'playcount': playcount 'playcount': playcount
@ -306,7 +306,7 @@ class Player(xbmc.Player):
except RuntimeError: except RuntimeError:
# When Kodi is not playing # When Kodi is not playing
return return
self.played_info[currentFile]['currentPosition'] = position * 1000 self.played_info[currentFile]['currentPosition'] = position
def onPlayBackStopped(self): def onPlayBackStopped(self):
# Will be called when user stops xbmc playing a file # Will be called when user stops xbmc playing a file