Make sure we only sync boxsets once

This commit is contained in:
Matt 2021-05-02 12:46:47 -04:00
parent 37a72759cb
commit 8b89ff3deb
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ class FullSync(object):
# Include boxsets library # Include boxsets library
libraries = self.get_libraries() libraries = self.get_libraries()
boxsets = [row.view_id for row in libraries if row.media_type == 'boxsets'] boxsets = [row.view_id for row in libraries if row.media_type == 'boxsets']
if boxsets: # Verify we're only trying to sync boxsets once
if boxsets and boxsets[0] not in self.sync['Libraries']:
self.sync['Libraries'].append('Boxsets:%s' % boxsets[0]) self.sync['Libraries'].append('Boxsets:%s' % boxsets[0])
else: else:
# Only called if the library isn't already known about # Only called if the library isn't already known about