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)