From 77f06b081799ee3a42bb4e329a74bad77d49a59e Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 14 Mar 2021 09:44:36 -0400 Subject: [PATCH] Fix full syncs with new actors --- jellyfin_kodi/objects/kodi/kodi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jellyfin_kodi/objects/kodi/kodi.py b/jellyfin_kodi/objects/kodi/kodi.py index 3f02d3af..8abf1a57 100644 --- a/jellyfin_kodi/objects/kodi/kodi.py +++ b/jellyfin_kodi/objects/kodi/kodi.py @@ -164,7 +164,7 @@ class Kodi(object): '''Retrieve person from the database, or add them if they don't exist ''' resp = self.cursor.execute(QU.get_person, args).fetchone() - if len(resp) > 0: + if resp is not None: return resp[0] else: return self.add_person(*args)