diff --git a/resources/lib/library_sync/full_sync.py b/resources/lib/library_sync/full_sync.py index 39d5fcff..296a2805 100644 --- a/resources/lib/library_sync/full_sync.py +++ b/resources/lib/library_sync/full_sync.py @@ -107,7 +107,8 @@ class FullSync(common.libsync_mixin): self.context, utils.cast(int, iterator.get('totalSize', 0)), iterator.get('librarySectionTitle'), - section['section_id']) + section['section_id'], + self.plex_type) self.queue.put(queue_info) with PlexDB() as self.plexdb: for xml_item in iterator: @@ -133,7 +134,8 @@ class FullSync(common.libsync_mixin): self.context, utils.cast(int, iterator.get('totalSize', 0)), iterator.get('librarySectionTitle'), - section['section_id']) + section['section_id'], + self.plex_type) self.queue.put(queue_info) # Ensure that the DB connection is closed to commit the # changes above - avoids "Item not yet synced" error diff --git a/resources/lib/library_sync/process_metadata.py b/resources/lib/library_sync/process_metadata.py index 5482c353..1c9d1372 100644 --- a/resources/lib/library_sync/process_metadata.py +++ b/resources/lib/library_sync/process_metadata.py @@ -21,11 +21,12 @@ class InitNewSection(object): context: itemtypes.Movie, itemtypes.Episode, etc. """ def __init__(self, context, total_number_of_items, section_name, - section_id): + section_id, plex_type): self.context = context self.total = total_number_of_items self.name = section_name self.id = section_id + self.plex_type = plex_type class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin):