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']
|
difference = datetime.today() - self.settings['last_progress']
|
||||||
|
|
||||||
if difference.seconds > 10:
|
if difference.seconds > 10:
|
||||||
|
update = difference.seconds > 250
|
||||||
|
event('ReportProgressRequested', {'Report': update})
|
||||||
|
|
||||||
event('ReportProgressRequested', {'Report': difference.seconds > 200})
|
if update:
|
||||||
self.settings['last_progress'] = datetime.today()
|
self.settings['last_progress'] = datetime.today()
|
||||||
|
|
||||||
if self.waitForAbort(1):
|
if self.waitForAbort(1):
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue