check for item name none

This commit is contained in:
shaun 2017-01-04 19:25:52 +11:00
parent 099b8ce253
commit 4298db5f90

View file

@ -236,7 +236,8 @@ class TVShows(Items):
API = api.API(item) API = api.API(item)
if settings('syncEmptyShows') == "false" and not item.get('RecursiveItemCount'): if settings('syncEmptyShows') == "false" and not item.get('RecursiveItemCount'):
log.info("Skipping empty show: %s", item['Name']) 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 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 # If the item doesn't exist, we'll add it to the database