added role for actors for kodi 15

This commit is contained in:
im85288 2015-05-10 13:28:42 +01:00
parent b948ff64e1
commit f7a65c6763

View file

@ -755,8 +755,8 @@ class WriteKodiVideoDB():
Role = person.get("Role") Role = person.get("Role")
if kodiVersion == 15: if kodiVersion == 15:
# Kodi Isengard database # # Kodi Isengard database #
peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type) values(?, ?, ?)" peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type,role) values(?, ?, ?, ?)"
cursor.execute(peoplesql, (actorid, id, mediatype)) cursor.execute(peoplesql, (actorid, id, mediatype, Role))
else: else:
# Kodi Gotham or Helix database # # Kodi Gotham or Helix database #
if mediatype == "movie": if mediatype == "movie":