From 0e50f1305558fa79157995c4e3ca8f16fb9fa86b Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 20 Sep 2016 21:39:21 -0500 Subject: [PATCH] Fix series pooling If there's the same series in different libraries --- resources/lib/itemtypes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 92f6b72a..18f7a1c5 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1058,14 +1058,13 @@ class TVShows(Items): query = "SELECT idShow FROM tvshow WHERE C12 = ?" kodicursor.execute(query, (tvdb,)) try: - showid = kodicursor.fetchone()[0] + temp_showid = kodicursor.fetchone()[0] except TypeError: pass else: - emby_other = emby_db.getItem_byKodiId(showid, "tvshow") + emby_other = emby_db.getItem_byKodiId(temp_showid, "tvshow") if 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] pathid = emby_other_item[2]