mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-10-08 01:42:05 +00:00
use the latest source for download utils
This commit is contained in:
parent
5e580e6e2c
commit
0eacb876c7
2 changed files with 177 additions and 113 deletions
|
@ -18,6 +18,8 @@ import KodiMonitor
|
|||
import Utils as utils
|
||||
from LibrarySync import LibrarySync
|
||||
from Player import Player
|
||||
from DownloadUtils import DownloadUtils
|
||||
from ConnectionManager import ConnectionManager
|
||||
librarySync = LibrarySync()
|
||||
|
||||
class Service():
|
||||
|
@ -33,6 +35,8 @@ class Service():
|
|||
|
||||
def ServiceEntryPoint(self):
|
||||
|
||||
ConnectionManager().checkServer()
|
||||
|
||||
player = Player()
|
||||
lastProgressUpdate = datetime.today()
|
||||
|
||||
|
@ -76,7 +80,7 @@ class Service():
|
|||
pass
|
||||
else:
|
||||
# background worker for database sync
|
||||
if WINDOW.getProperty("mb3_authenticated") == "true":
|
||||
if DownloadUtils().authenticate(retreive=False) != "":
|
||||
|
||||
#full sync
|
||||
if((interval_FullSync >= cur_seconds_fullsync)):
|
||||
|
@ -91,8 +95,6 @@ class Service():
|
|||
cur_seconds_incrsync = interval_IncrementalSync
|
||||
else:
|
||||
cur_seconds_incrsync -= 1
|
||||
else:
|
||||
utils.checkAuthentication()
|
||||
|
||||
utils.logMsg("MB3 Sync Service" "stopping Service",0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue