mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Add option to sync empty tv shows
This commit is contained in:
parent
56e558f1ea
commit
fc1344b7da
2 changed files with 5 additions and 4 deletions
|
@ -360,7 +360,7 @@ class LibrarySync(threading.Thread):
|
||||||
pDialog.update(percentage, "Emby for Kodi - Running Sync", progressTitle)
|
pDialog.update(percentage, "Emby for Kodi - Running Sync", progressTitle)
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
if item.get('IsFolder') and item.get('RecursiveItemCount') != 0:
|
if utils.settings('syncEmptyShows') == "true" or (item.get('IsFolder') and item.get('RecursiveItemCount') != 0):
|
||||||
allEmbyTvShowIds.append(item["Id"])
|
allEmbyTvShowIds.append(item["Id"])
|
||||||
|
|
||||||
#build a list with all Id's and get the existing entry (if exists) in Kodi DB
|
#build a list with all Id's and get the existing entry (if exists) in Kodi DB
|
||||||
|
@ -650,7 +650,7 @@ class LibrarySync(threading.Thread):
|
||||||
percentage = int(((float(count) / float(total)) * 100))
|
percentage = int(((float(count) / float(total)) * 100))
|
||||||
pDialog.update(percentage, "Emby for Kodi - Incremental Sync Tv", progressTitle)
|
pDialog.update(percentage, "Emby for Kodi - Incremental Sync Tv", progressTitle)
|
||||||
count = count + 1
|
count = count + 1
|
||||||
if item.get('IsFolder') and item.get('RecursiveItemCount') != 0:
|
if utils.settings('syncEmptyShows') == "true" or (item.get('IsFolder') and item.get('RecursiveItemCount') != 0):
|
||||||
kodiId = WriteKodiVideoDB().addOrUpdateTvShowToKodiLibrary(item["Id"],connection, cursor, view.get('title'))
|
kodiId = WriteKodiVideoDB().addOrUpdateTvShowToKodiLibrary(item["Id"],connection, cursor, view.get('title'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -1045,4 +1045,4 @@ class LibrarySync(threading.Thread):
|
||||||
|
|
||||||
def resumeClient(self):
|
def resumeClient(self):
|
||||||
self.suspendClient = False
|
self.suspendClient = False
|
||||||
self.logMsg("--- Library Sync Thread resumed ---", 0)
|
self.logMsg("--- Library Sync Thread resumed ---", 0)
|
|
@ -22,9 +22,10 @@
|
||||||
</category>
|
</category>
|
||||||
<category label="Sync Options">
|
<category label="Sync Options">
|
||||||
<setting id="dbSyncIndication" type="bool" label="Show sync progress on screen" default="false" visible="true" enable="true" />
|
<setting id="dbSyncIndication" type="bool" label="Show sync progress on screen" default="false" visible="true" enable="true" />
|
||||||
|
<setting id="syncEmptyShows" type="bool" label="Sync empty TV Shows" default="false" visible="true" enable="true" />
|
||||||
<setting id="enableMusicSync" type="bool" label="Enable Music Library Sync" default="true" visible="true" enable="true" />
|
<setting id="enableMusicSync" type="bool" label="Enable Music Library Sync" default="true" visible="true" enable="true" />
|
||||||
<setting id="directstreammusic" type="bool" label="- Direct stream music library" default="false" visible="eq(-1,true)" enable="true" />
|
<setting id="directstreammusic" type="bool" label="- Direct stream music library" default="false" visible="eq(-1,true)" enable="true" />
|
||||||
<setting id="useDirectPaths" type="bool" label="30250" default="false" visible="true" enable="true" />
|
<setting id="useDirectPaths" type="bool" label="30250" default="false" visible="true" enable="true" />
|
||||||
<setting id="enableTextureCache" type="bool" label="Auto add images to the Kodi texture cache" default="true" visible="true" enable="true" />
|
<setting id="enableTextureCache" type="bool" label="Auto add images to the Kodi texture cache" default="true" visible="true" enable="true" />
|
||||||
<setting id="useIncSync" type="bool" label="Use incremental sync at startup (Requires Server Plugin)" default="false" visible="true" enable="true" />
|
<setting id="useIncSync" type="bool" label="Use incremental sync at startup (Requires Server Plugin)" default="false" visible="true" enable="true" />
|
||||||
</category>
|
</category>
|
||||||
|
|
Loading…
Reference in a new issue