mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
parent
e42542d490
commit
748683024d
2 changed files with 2 additions and 9 deletions
|
@ -150,8 +150,8 @@ class Kodi(object):
|
|||
bulk_updates.setdefault(sql, []).append((person_id,) + args)
|
||||
|
||||
elif person['Type'] == 'Artist':
|
||||
sql = QU.insert_link_if_not_exists.replace("{LinkType}", 'actor_link')
|
||||
bulk_updates.setdefault(sql, []).append((person_id,) + args + (person_id,) + args)
|
||||
sql = QU.update_link.replace("{LinkType}", 'actor_link')
|
||||
bulk_updates.setdefault(sql, []).append((person_id,) + args)
|
||||
|
||||
add_thumbnail(person_id, person, person['Type'])
|
||||
|
||||
|
|
|
@ -402,13 +402,6 @@ update_link = """
|
|||
INSERT OR REPLACE INTO {LinkType}(actor_id, media_id, media_type)
|
||||
VALUES (?, ?, ?)
|
||||
"""
|
||||
# update_link does not work for actor_link as not all values from unique index are provided
|
||||
# Resulting in duplicates
|
||||
insert_link_if_not_exists = """
|
||||
INSERT INTO {LinkType}(actor_id, media_id, media_type)
|
||||
SELECT ?, ?, ?
|
||||
WHERE NOT EXISTS(SELECT 1 FROM {LinkType} WHERE actor_id = ? AND media_id = ? AND media_type = ?)
|
||||
"""
|
||||
update_movie = """
|
||||
UPDATE movie
|
||||
SET c00 = ?, c01 = ?, c02 = ?, c03 = ?, c04 = ?, c05 = ?, c06 = ?,
|
||||
|
|
Loading…
Reference in a new issue