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,6 +236,7 @@ class TVShows(Items):
API = api.API(item)
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
# If the item already exist in the local Kodi DB we'll perform a full item update