From 3d6542bda45e4085ddb262352211971583fda523 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 30 Sep 2016 04:20:03 -0500 Subject: [PATCH] Fix series pooling In case there's a duplicate in the Kodi database, but it's not an emby entry. --- 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 479c0d9c..292dd052 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1090,7 +1090,7 @@ class TVShows(Items): pass else: emby_other = emby_db.getItem_byKodiId(temp_showid, "tvshow") - if viewid == emby_other[2]: + if emby_other and viewid == emby_other[2]: log.info("Applying series pooling for %s", title) emby_other_item = emby_db.getItem_byId(emby_other[0]) showid = emby_other_item[0]