mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
fix silly bug with addon setting not being setup soon enough
This commit is contained in:
parent
6df36cd6a3
commit
ac80632644
2 changed files with 8 additions and 8 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="1.1.21"
|
version="1.1.22"
|
||||||
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"/>
|
||||||
|
|
|
@ -59,6 +59,12 @@ class LibrarySync(threading.Thread):
|
||||||
|
|
||||||
def FullLibrarySync(self,manualRun=False):
|
def FullLibrarySync(self,manualRun=False):
|
||||||
|
|
||||||
|
addon = xbmcaddon.Addon(id='plugin.video.emby')
|
||||||
|
startupDone = WINDOW.getProperty("startup") == "done"
|
||||||
|
syncInstallRunDone = addon.getSetting("SyncInstallRunDone") == "true"
|
||||||
|
performMusicSync = addon.getSetting("enableMusicSync") == "true"
|
||||||
|
dbSyncIndication = addon.getSetting("dbSyncIndication") == "true"
|
||||||
|
|
||||||
### BUILD VIDEO NODES LISTING ###
|
### BUILD VIDEO NODES LISTING ###
|
||||||
VideoNodes().buildVideoNodesListing()
|
VideoNodes().buildVideoNodesListing()
|
||||||
### CREATE SOURCES ###
|
### CREATE SOURCES ###
|
||||||
|
@ -68,14 +74,8 @@ class LibrarySync(threading.Thread):
|
||||||
utils.createSources()
|
utils.createSources()
|
||||||
addon.setSetting("Sources", "true")
|
addon.setSetting("Sources", "true")
|
||||||
|
|
||||||
addon = xbmcaddon.Addon(id='plugin.video.emby')
|
|
||||||
startupDone = WINDOW.getProperty("startup") == "done"
|
|
||||||
syncInstallRunDone = addon.getSetting("SyncInstallRunDone") == "true"
|
|
||||||
performMusicSync = addon.getSetting("enableMusicSync") == "true"
|
|
||||||
dbSyncIndication = addon.getSetting("dbSyncIndication") == "true"
|
|
||||||
|
|
||||||
# just do a incremental sync if that is what is required
|
# just do a incremental sync if that is what is required
|
||||||
if(addon.getSetting("useIncSync") == "true" and addon.getSetting("SyncInstallRunDone") == "true") :
|
if(addon.getSetting("useIncSync") == "true" and addon.getSetting("SyncInstallRunDone") == "true"):
|
||||||
utils.logMsg("Sync Database", "Using incremental sync instead of full sync useIncSync=True)", 0)
|
utils.logMsg("Sync Database", "Using incremental sync instead of full sync useIncSync=True)", 0)
|
||||||
|
|
||||||
du = DownloadUtils()
|
du = DownloadUtils()
|
||||||
|
|
Loading…
Reference in a new issue