mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix: Some TV library sync failed, if the TV library was mixed.
This commit is contained in:
parent
a112613d84
commit
5b45d5293c
1 changed files with 2 additions and 2 deletions
|
@ -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']))
|
||||
|
|
Loading…
Reference in a new issue