mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix progress report
This commit is contained in:
parent
db3c134f18
commit
cdb3b54026
1 changed files with 5 additions and 3 deletions
|
@ -98,9 +98,11 @@ class Service(xbmc.Monitor):
|
|||
difference = datetime.today() - self.settings['last_progress']
|
||||
|
||||
if difference.seconds > 10:
|
||||
|
||||
event('ReportProgressRequested', {'Report': difference.seconds > 200})
|
||||
self.settings['last_progress'] = datetime.today()
|
||||
update = difference.seconds > 250
|
||||
event('ReportProgressRequested', {'Report': update})
|
||||
|
||||
if update:
|
||||
self.settings['last_progress'] = datetime.today()
|
||||
|
||||
if self.waitForAbort(1):
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue