mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix delete on playback end
This commit is contained in:
parent
ea97465050
commit
8dad5bdd74
1 changed files with 3 additions and 3 deletions
|
@ -240,14 +240,14 @@ class Player(xbmc.Player):
|
||||||
|
|
||||||
def onPlayBackSeek(self, time, seekOffset):
|
def onPlayBackSeek(self, time, seekOffset):
|
||||||
|
|
||||||
''' Does not seem to work??
|
''' Does not seem to work in Leia??
|
||||||
'''
|
'''
|
||||||
current_file = self.getPlayingFile()
|
current_file = self.getPlayingFile()
|
||||||
|
|
||||||
if current_file in self.played:
|
if current_file in self.played:
|
||||||
|
|
||||||
self.report_playback()
|
self.report_playback()
|
||||||
LOG.debug("--[ seek ]")
|
LOG.info("--[ seek ]")
|
||||||
|
|
||||||
def report_playback(self, report=True):
|
def report_playback(self, report=True):
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@ class Player(xbmc.Player):
|
||||||
window('emby.external', clear=True)
|
window('emby.external', clear=True)
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
played = (item['CurrentPosition'] * 10000000) / int(item['Runtime'])
|
played = float(item['CurrentPosition'] * 10000000) / int(item['Runtime'])
|
||||||
except ZeroDivisionError: # Runtime is 0.
|
except ZeroDivisionError: # Runtime is 0.
|
||||||
played = 0
|
played = 0
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in a new issue