Merge pull request #774 from sonofsky2010/fix/syc_tv_library_failed

Fix: Some TV library sync failed, if the TV library was mixed.
This commit is contained in:
Odd Stråbø 2024-02-08 15:00:17 +01:00 committed by GitHub
commit 455b70bd65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -556,10 +556,10 @@ def find_library(server, item):
from ..database import get_sync from ..database import get_sync
sync = get_sync() sync = get_sync()
whitelist = [x.replace('Mixed:', "") for x in sync['Whitelist']]
ancestors = server.jellyfin.get_ancestors(item['Id']) ancestors = server.jellyfin.get_ancestors(item['Id'])
for ancestor in ancestors: for ancestor in ancestors:
if ancestor['Id'] in sync['Whitelist']: if ancestor['Id'] in whitelist:
return ancestor return ancestor
LOG.error('No ancestor found, not syncing item with ID: {}'.format(item['Id'])) LOG.error('No ancestor found, not syncing item with ID: {}'.format(item['Id']))