mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.emby"
|
<addon id="plugin.video.emby"
|
||||||
name="Emby"
|
name="Emby"
|
||||||
version="0.0.2"
|
version="0.0.3"
|
||||||
provider-name="Emby.media">
|
provider-name="Emby.media">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
|
|
|
@ -43,31 +43,45 @@ class LibrarySync():
|
||||||
startupDone = True
|
startupDone = True
|
||||||
|
|
||||||
#are we running startup sync or background sync ?
|
#are we running startup sync or background sync ?
|
||||||
if not startupDone:
|
#if not startupDone:
|
||||||
syncOption = addon.getSetting("syncSettingStartup")
|
# syncOption = addon.getSetting("syncSettingStartup")
|
||||||
else:
|
#else:
|
||||||
syncOption = addon.getSetting("syncSettingBackground")
|
# syncOption = addon.getSetting("syncSettingBackground")
|
||||||
|
|
||||||
#what sync method to perform ?
|
#what sync method to perform ?
|
||||||
if syncOption == "Full Sync":
|
#if syncOption == "Full Sync":
|
||||||
|
|
||||||
#pr = utils.startProfiling()
|
#pr = utils.startProfiling()
|
||||||
self.MoviesSync(True)
|
# self.MoviesSync(True)
|
||||||
#utils.stopProfiling(pr, "MoviesSync(True)")
|
#utils.stopProfiling(pr, "MoviesSync(True)")
|
||||||
|
|
||||||
#pr = utils.startProfiling()
|
#pr = utils.startProfiling()
|
||||||
self.TvShowsSync(True)
|
# self.TvShowsSync(True)
|
||||||
#utils.stopProfiling(pr, "TvShowsSync(True)")
|
#utils.stopProfiling(pr, "TvShowsSync(True)")
|
||||||
|
|
||||||
#pr = utils.startProfiling()
|
#pr = utils.startProfiling()
|
||||||
self.MusicVideosSync(True)
|
# self.MusicVideosSync(True)
|
||||||
#utils.stopProfiling(pr, "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.MoviesSync(False)
|
||||||
self.TvShowsSync(False)
|
self.TvShowsSync(False)
|
||||||
self.MusicVideosSync(False)
|
self.MusicVideosSync(False)
|
||||||
|
|
||||||
|
self.MoviesSync(True)
|
||||||
|
self.TvShowsSync(True)
|
||||||
|
self.MusicVideosSync(True)
|
||||||
|
|
||||||
WINDOW.setProperty("startup", "done")
|
WINDOW.setProperty("startup", "done")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
<category label="Automatic sync"> <!-- Auto sync optionss -->
|
<category label="Automatic sync"> <!-- Auto sync optionss -->
|
||||||
<setting id="enablePlayCountSync" type="bool" label="Enable watched/resume status sync" default="true" visible="true" enable="true" />
|
<setting id="enablePlayCountSync" type="bool" label="Enable watched/resume status sync" default="true" visible="true" enable="true" />
|
||||||
<setting id="syncSettingStartup" type="labelenum" label="Startup Sync:" values="Full Sync|Incremental Sync|None" default="Full Sync" />
|
<!-- <setting id="syncSettingStartup" type="labelenum" label="Startup Sync:" values="Full Sync|Incremental Sync|None" default="Full Sync" />
|
||||||
<setting id="syncSettingBackground" type="labelenum" label="Scheduled Sync:" values="Full Sync|Incremental Sync|None" default="Incremental Sync" visible="true" enable="true" />
|
<setting id="syncSettingBackground" type="labelenum" label="Scheduled Sync:" values="Full Sync|Incremental Sync|None" default="Incremental Sync" visible="true" enable="true" /> -->
|
||||||
<setting id="dbSyncIndication" type="labelenum" label="DB Sync Indication:" values="None|Notify OnChange|Notify OnFinish|BG Progress|Dialog Progress" default="None" />
|
<setting id="dbSyncIndication" type="labelenum" label="DB Sync Indication:" values="None|Notify OnChange|Notify OnFinish|BG Progress|Dialog Progress" default="None" />
|
||||||
<setting id="playCountSyncIndication" type="labelenum" label="Play Count Sync Indication:" values="None|Notify OnChange|Notify OnFinish|BG Progress|Dialog Progress" default="None" />
|
<setting id="playCountSyncIndication" type="labelenum" label="Play Count Sync Indication:" values="None|Notify OnChange|Notify OnFinish|BG Progress|Dialog Progress" default="None" />
|
||||||
</category>
|
</category>
|
||||||
|
|
Loading…
Reference in a new issue