mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
fix cast order - isengard only
This commit is contained in:
parent
8e8f9d574d
commit
708b042af6
2 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.emby"
|
<addon id="plugin.video.emby"
|
||||||
name="Emby"
|
name="Emby"
|
||||||
version="1.1.13"
|
version="1.1.14"
|
||||||
provider-name="Emby.media">
|
provider-name="Emby.media">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
|
|
|
@ -810,11 +810,10 @@ class WriteKodiVideoDB():
|
||||||
kodiVersion = 15
|
kodiVersion = 15
|
||||||
|
|
||||||
if(people != None):
|
if(people != None):
|
||||||
for person in people:
|
castorder = 1
|
||||||
|
for person in people:
|
||||||
Name = person.get("Name")
|
Name = person.get("Name")
|
||||||
actorid = None
|
actorid = None
|
||||||
|
|
||||||
# Get existing actor
|
# Get existing actor
|
||||||
if kodiVersion == 15:
|
if kodiVersion == 15:
|
||||||
# Kodi Isengard database #
|
# Kodi Isengard database #
|
||||||
|
@ -858,8 +857,9 @@ 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,role) values(?, ?, ?, ?)"
|
peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type,role,cast_order) values(?, ?, ?, ?, ?)"
|
||||||
cursor.execute(peoplesql, (actorid, id, mediatype, Role))
|
cursor.execute(peoplesql, (actorid, id, mediatype, Role, castorder))
|
||||||
|
castorder = castorder + 1
|
||||||
else:
|
else:
|
||||||
# Kodi Gotham or Helix database #
|
# Kodi Gotham or Helix database #
|
||||||
if mediatype == "movie":
|
if mediatype == "movie":
|
||||||
|
|
Loading…
Reference in a new issue