mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Merge pull request #315 from mcarlton00/mixed-libraries-are-bad-and-should-feel-bad
Fix incremental sync for mixed content libraries
This commit is contained in:
commit
e795e198ef
1 changed files with 2 additions and 1 deletions
|
@ -375,10 +375,11 @@ class Library(threading.Thread):
|
||||||
include = []
|
include = []
|
||||||
filters = ["tvshows", "boxsets", "musicvideos", "music", "movies"]
|
filters = ["tvshows", "boxsets", "musicvideos", "music", "movies"]
|
||||||
sync = get_sync()
|
sync = get_sync()
|
||||||
|
whitelist = [ x.replace('Mixed:', "") for x in sync['Whitelist'] ]
|
||||||
LOG.info("--[ retrieve changes ] %s", last_sync)
|
LOG.info("--[ retrieve changes ] %s", last_sync)
|
||||||
|
|
||||||
# Get the item type of each synced library and build list of types to request
|
# Get the item type of each synced library and build list of types to request
|
||||||
for item_id in sync['Whitelist']:
|
for item_id in whitelist:
|
||||||
library = self.server.jellyfin.get_item(item_id)
|
library = self.server.jellyfin.get_item(item_id)
|
||||||
library_type = library.get('CollectionType')
|
library_type = library.get('CollectionType')
|
||||||
if library_type in filters:
|
if library_type in filters:
|
||||||
|
|
Loading…
Reference in a new issue