From 70ef07276a0a86d5c1f6d9effe30ee5a0bc0101c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 6 Aug 2020 02:31:38 +0200 Subject: [PATCH 1/2] Fix UserDataWorker --- jellyfin_kodi/library.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jellyfin_kodi/library.py b/jellyfin_kodi/library.py index a4c2550e..3818ee13 100644 --- a/jellyfin_kodi/library.py +++ b/jellyfin_kodi/library.py @@ -652,12 +652,14 @@ class UserDataWorker(threading.Thread): is_done = False - def __init__(self, queue, lock, database, *args): + def __init__(self, queue, lock, database, server, direct_path): self.queue = queue self.lock = lock self.database = Database(database) - self.args = args + self.server = server + self.direct_path = direct_path + threading.Thread.__init__(self) def run(self): From a2d0c3cb493cb9c0109731001a30a80f0619d454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 6 Aug 2020 03:44:55 +0200 Subject: [PATCH 2/2] Remove Ancestor found debug (info) log --- jellyfin_kodi/helper/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/jellyfin_kodi/helper/utils.py b/jellyfin_kodi/helper/utils.py index 7b814116..835cbf1b 100644 --- a/jellyfin_kodi/helper/utils.py +++ b/jellyfin_kodi/helper/utils.py @@ -546,7 +546,6 @@ def find_library(server, item): ancestors = server.jellyfin.get_ancestors(item['Id']) for ancestor in ancestors: if ancestor['Id'] in sync['Whitelist']: - LOG.info('Ancestor Found') return ancestor LOG.error('No ancestor found, not syncing item with ID: {}'.format(item['Id']))