mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-05 15:56:14 +00:00
move get setting and creation of Download Utils to where they are used
to allow them to pick up the values at the time they are needed
This commit is contained in:
parent
4f6e7c2233
commit
f7aa1d4310
2 changed files with 54 additions and 21 deletions
20
service.py
20
service.py
|
@ -84,18 +84,28 @@ class Service():
|
|||
|
||||
#full sync
|
||||
if(cur_seconds_fullsync >= interval_FullSync):
|
||||
librarySync.syncDatabase()
|
||||
cur_seconds_fullsync = 0
|
||||
xbmc.log("Doing_Db_Sync: syncDatabase")
|
||||
worked = librarySync.syncDatabase()
|
||||
if(worked):
|
||||
cur_seconds_fullsync = 0
|
||||
else:
|
||||
cur_seconds_fullsync = interval_FullSync - 10
|
||||
else:
|
||||
cur_seconds_fullsync += 1
|
||||
|
||||
#incremental sync
|
||||
if(cur_seconds_incrsync >= interval_IncrementalSync):
|
||||
librarySync.updatePlayCounts()
|
||||
cur_seconds_incrsync = 0
|
||||
xbmc.log("Doing_Db_Sync: updatePlayCounts")
|
||||
worked = librarySync.updatePlayCounts()
|
||||
if(worked):
|
||||
cur_seconds_incrsync = 0
|
||||
else:
|
||||
cur_seconds_incrsync = interval_IncrementalSync - 10
|
||||
else:
|
||||
cur_seconds_incrsync += 1
|
||||
|
||||
else:
|
||||
xbmc.log("Not authenticated yet")
|
||||
|
||||
utils.logMsg("MB3 Sync Service" "stopping Service",0)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue