From 5b45d5293cdac20eac362ee6a52188d0caa7f59f Mon Sep 17 00:00:00 2001 From: sonofsky2010 Date: Sun, 9 Jul 2023 15:36:33 +0800 Subject: [PATCH] Fix: Some TV library sync failed, if the TV library was mixed. --- jellyfin_kodi/helper/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jellyfin_kodi/helper/utils.py b/jellyfin_kodi/helper/utils.py index 38ce9155..3cb054be 100644 --- a/jellyfin_kodi/helper/utils.py +++ b/jellyfin_kodi/helper/utils.py @@ -548,10 +548,10 @@ def find_library(server, item): from ..database import get_sync sync = get_sync() - + whitelist = [x.replace('Mixed:', "") for x in sync['Whitelist']] ancestors = server.jellyfin.get_ancestors(item['Id']) for ancestor in ancestors: - if ancestor['Id'] in sync['Whitelist']: + if ancestor['Id'] in whitelist: return ancestor LOG.error('No ancestor found, not syncing item with ID: {}'.format(item['Id']))