Add option to sync empty tv shows

This commit is contained in:
angelblue05 2015-08-25 22:21:31 -05:00
parent 56e558f1ea
commit fc1344b7da
2 changed files with 5 additions and 4 deletions

View file

@ -360,7 +360,7 @@ class LibrarySync(threading.Thread):
pDialog.update(percentage, "Emby for Kodi - Running Sync", progressTitle)
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"])
#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))
pDialog.update(percentage, "Emby for Kodi - Incremental Sync Tv", progressTitle)
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'))
@ -1045,4 +1045,4 @@ class LibrarySync(threading.Thread):
def resumeClient(self):
self.suspendClient = False
self.logMsg("--- Library Sync Thread resumed ---", 0)
self.logMsg("--- Library Sync Thread resumed ---", 0)