Server api changed recursivecount. It now returns 0 regardless of the
show containing episodes. There's no way to detect empty shows as far as
I'm aware so remove check.
This commit is contained in:
angelblue05 2017-12-13 02:38:26 -06:00
parent bfaed955f5
commit 938538c54f

View file

@ -234,10 +234,11 @@ class TVShows(Items):
artwork = self.artwork
API = api.API(item)
if settings('syncEmptyShows') == "false" and not item.get('RecursiveItemCount'):
# Server api changed or something? RecursiveItemCount always returns 0
"""if settings('syncEmptyShows') == "false" and not item.get('RecursiveItemCount'):
if item.get('Name', None) is not None:
log.info("Skipping empty show: %s", item['Name'])
return
return"""
# If the item already exist in the local Kodi DB we'll perform a full item update
# If the item doesn't exist, we'll add it to the database
update_item = True