From 5f9dc429500d495d840ad478e39cec373ff088f2 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 28 Jun 2015 08:36:44 -0500 Subject: [PATCH] Fix fail paste --- resources/lib/LibrarySync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index fb449623..bc5482b2 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -701,7 +701,7 @@ class LibrarySync(threading.Thread): showTotalCount = ReadKodiDB().getShowTotalCount(showId, connection, cursor) self.logMsg("ShowTotalCount: %s" % showTotalCount, 0) # If there are no episodes left - if not showTotalCount: + if showTotalCount == 0 or showTotalCount == None: # Delete show embyId = ReadKodiDB().getEmbyIdByKodiId(showId, "tvshow", connection, cursor) self.logMsg("Message: Doing LibraryChanged: Deleting show: %s" % embyId, 0)