parent
7e53932cc3
commit
8d76bc53e5
1 changed files with 5 additions and 1 deletions
|
@ -303,7 +303,11 @@ class KodiDBMethods(object):
|
||||||
# Add all new entries that haven't already been added
|
# Add all new entries that haven't already been added
|
||||||
query = 'INSERT INTO %s VALUES (?, ?, ?)' % link_table
|
query = 'INSERT INTO %s VALUES (?, ?, ?)' % link_table
|
||||||
for entry_id in entry_ids:
|
for entry_id in entry_ids:
|
||||||
self.cursor.execute(query, (entry_id, kodi_id, kodi_type))
|
try:
|
||||||
|
self.cursor.execute(query, (entry_id, kodi_id, kodi_type))
|
||||||
|
except IntegrityError:
|
||||||
|
LOG.info('IntegrityError: skipping entry %s for table %s',
|
||||||
|
entry_id, link_table)
|
||||||
# Delete all outdated references in the link table. Also check whether
|
# Delete all outdated references in the link table. Also check whether
|
||||||
# we need to delete orphaned entries in the master table
|
# we need to delete orphaned entries in the master table
|
||||||
query = '''
|
query = '''
|
||||||
|
|
Loading…
Reference in a new issue