Empty show

Prevent crash in the event RecursiveItemCount is missing. Sounds like a
server bug if it's missing from the api
This commit is contained in:
angelblue05 2016-06-16 14:13:38 -05:00
parent b9d40d91a6
commit e7bdfacd47

View file

@ -1004,7 +1004,7 @@ class TVShows(Items):
artwork = self.artwork artwork = self.artwork
API = api.API(item) API = api.API(item)
if utils.settings('syncEmptyShows') == "false" and not item['RecursiveItemCount']: if utils.settings('syncEmptyShows') == "false" and not item.get('RecursiveItemCount'):
self.logMsg("Skipping empty show: %s" % item['Name'], 1) self.logMsg("Skipping empty show: %s" % item['Name'], 1)
return return
# If the item already exist in the local Kodi DB we'll perform a full item update # If the item already exist in the local Kodi DB we'll perform a full item update