From 4298db5f901fd72b7d21d898bda53056bf2c5431 Mon Sep 17 00:00:00 2001 From: shaun Date: Wed, 4 Jan 2017 19:25:52 +1100 Subject: [PATCH] check for item name none --- resources/lib/objects/tvshows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/objects/tvshows.py b/resources/lib/objects/tvshows.py index 2a9f8f5e..8ee56cd1 100644 --- a/resources/lib/objects/tvshows.py +++ b/resources/lib/objects/tvshows.py @@ -236,7 +236,8 @@ class TVShows(Items): API = api.API(item) 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 # 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