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:
Abby 2020-06-07 21:53:49 +01:00 committed by GitHub
commit e795e198ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -375,10 +375,11 @@ class Library(threading.Thread):
include = []
filters = ["tvshows", "boxsets", "musicvideos", "music", "movies"]
sync = get_sync()
whitelist = [ x.replace('Mixed:', "") for x in sync['Whitelist'] ]
LOG.info("--[ retrieve changes ] %s", last_sync)
# 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_type = library.get('CollectionType')
if library_type in filters: