Fix IntegrityError

This commit is contained in:
croneter 2018-02-28 13:45:08 +01:00
parent 6c851bd3a6
commit db3be4cf09

View file

@ -267,9 +267,9 @@ class KodiDBMethods(object):
outdated_entries = []
for entry_id in old_entries:
try:
entry_ids.remove(entry_id)
entry_ids.remove(entry_id[0])
except ValueError:
outdated_entries.append(entry_id)
outdated_entries.append(entry_id[0])
# Add all new entries that haven't already been added
query = 'INSERT INTO %s VALUES (?, ?, ?)' % link_table
for entry_id in entry_ids: