Skip to content

Commit

Permalink
Merge pull request #774 from sonofsky2010/fix/syc_tv_library_failed
Browse files Browse the repository at this point in the history
Fix: Some TV library sync failed, if the TV library was mixed.
  • Loading branch information
oddstr13 authored Feb 8, 2024
2 parents 10dd83b + 5b45d52 commit 455b70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jellyfin_kodi/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,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']))
Expand Down

0 comments on commit 455b70b

Please sign in to comment.