From e7bdfacd4750b4a7a837d6ecc50325f3ba244897 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 16 Jun 2016 14:13:38 -0500 Subject: [PATCH] Empty show Prevent crash in the event RecursiveItemCount is missing. Sounds like a server bug if it's missing from the api --- resources/lib/itemtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 8151ee93..25f0db93 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1004,7 +1004,7 @@ class TVShows(Items): artwork = self.artwork 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) return # If the item already exist in the local Kodi DB we'll perform a full item update