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")
if kodiVersion == 15:
# Kodi Isengard database #
peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type) values(?, ?, ?)"
cursor.execute(peoplesql, (actorid, id, mediatype))
peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type,role) values(?, ?, ?, ?)"
cursor.execute(peoplesql, (actorid, id, mediatype, Role))
else:
# Kodi Gotham or Helix database #
if mediatype == "movie":