fix cast order - isengard only

This commit is contained in:
im85288 2015-07-15 21:05:12 +01:00
parent 8e8f9d574d
commit 708b042af6
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.emby"
name="Emby"
version="1.1.13"
version="1.1.14"
provider-name="Emby.media">
<requires>
<import addon="xbmc.python" version="2.1.0"/>

View file

@ -810,11 +810,10 @@ class WriteKodiVideoDB():
kodiVersion = 15
if(people != None):
castorder = 1
for person in people:
Name = person.get("Name")
actorid = None
# Get existing actor
if kodiVersion == 15:
# Kodi Isengard database #
@ -858,8 +857,9 @@ 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,role) values(?, ?, ?, ?)"
cursor.execute(peoplesql, (actorid, id, mediatype, Role))
peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type,role,cast_order) values(?, ?, ?, ?, ?)"
cursor.execute(peoplesql, (actorid, id, mediatype, Role, castorder))
castorder = castorder + 1
else:
# Kodi Gotham or Helix database #
if mediatype == "movie":