mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-11 11:55:09 +00:00
sync options removed from settings
This commit is contained in:
parent
de5dca04bd
commit
6f870cc4f8
3 changed files with 26 additions and 12 deletions
|
@ -43,31 +43,45 @@ class LibrarySync():
|
|||
startupDone = True
|
||||
|
||||
#are we running startup sync or background sync ?
|
||||
if not startupDone:
|
||||
syncOption = addon.getSetting("syncSettingStartup")
|
||||
else:
|
||||
syncOption = addon.getSetting("syncSettingBackground")
|
||||
#if not startupDone:
|
||||
# syncOption = addon.getSetting("syncSettingStartup")
|
||||
#else:
|
||||
# syncOption = addon.getSetting("syncSettingBackground")
|
||||
|
||||
#what sync method to perform ?
|
||||
if syncOption == "Full Sync":
|
||||
#if syncOption == "Full Sync":
|
||||
|
||||
#pr = utils.startProfiling()
|
||||
self.MoviesSync(True)
|
||||
# self.MoviesSync(True)
|
||||
#utils.stopProfiling(pr, "MoviesSync(True)")
|
||||
|
||||
#pr = utils.startProfiling()
|
||||
self.TvShowsSync(True)
|
||||
# self.TvShowsSync(True)
|
||||
#utils.stopProfiling(pr, "TvShowsSync(True)")
|
||||
|
||||
#pr = utils.startProfiling()
|
||||
self.MusicVideosSync(True)
|
||||
# self.MusicVideosSync(True)
|
||||
#utils.stopProfiling(pr, "MusicVideosSync(True)")
|
||||
|
||||
if syncOption == "Incremental Sync":
|
||||
#if syncOption == "Incremental Sync":
|
||||
# self.MoviesSync(False)
|
||||
# self.TvShowsSync(False)
|
||||
# self.MusicVideosSync(False)
|
||||
|
||||
# Do incremental sync followed by full sync
|
||||
if not startupDone:
|
||||
self.MoviesSync(True)
|
||||
self.TvShowsSync(True)
|
||||
self.MusicVideosSync(True)
|
||||
else:
|
||||
self.MoviesSync(False)
|
||||
self.TvShowsSync(False)
|
||||
self.MusicVideosSync(False)
|
||||
|
||||
self.MoviesSync(True)
|
||||
self.TvShowsSync(True)
|
||||
self.MusicVideosSync(True)
|
||||
|
||||
WINDOW.setProperty("startup", "done")
|
||||
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue