mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
Merge branch 'master' of https://github.com/MediaBrowser/Emby.Kodi
This commit is contained in:
commit
3589c4b05d
1 changed files with 6 additions and 5 deletions
|
@ -859,18 +859,19 @@ class WriteKodiVideoDB():
|
||||||
# Kodi Isengard database #
|
# Kodi Isengard database #
|
||||||
peoplesql="INSERT OR REPLACE into actor_link(actor_id, media_id, media_type,role, cast_order) 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, castorder))
|
cursor.execute(peoplesql, (actorid, id, mediatype, Role, castorder))
|
||||||
castorder = castorder + 1
|
castorder += 1
|
||||||
else:
|
else:
|
||||||
# Kodi Gotham or Helix database #
|
# Kodi Gotham or Helix database #
|
||||||
if mediatype == "movie":
|
if mediatype == "movie":
|
||||||
peoplesql="INSERT OR REPLACE into actorlinkmovie(idActor, idMovie, strRole, iOrder) values(?, ?, ?, ?)"
|
peoplesql="INSERT OR REPLACE into actorlinkmovie(idActor, idMovie, strRole, iOrder) values(?, ?, ?, ?)"
|
||||||
cursor.execute(peoplesql, (actorid,id,Role,None))
|
cursor.execute(peoplesql, (actorid,id,Role,castorder))
|
||||||
if mediatype == "tvshow":
|
if mediatype == "tvshow":
|
||||||
peoplesql="INSERT OR REPLACE into actorlinktvshow(idActor, idShow, strRole, iOrder) values(?, ?, ?, ?)"
|
peoplesql="INSERT OR REPLACE into actorlinktvshow(idActor, idShow, strRole, iOrder) values(?, ?, ?, ?)"
|
||||||
cursor.execute(peoplesql, (actorid,id,Role,None))
|
cursor.execute(peoplesql, (actorid,id,Role,castorder))
|
||||||
if mediatype == "episode":
|
if mediatype == "episode":
|
||||||
peoplesql="INSERT OR REPLACE into actorlinkepisode(idActor, idEpisode, strRole, iOrder) values(?, ?, ?, ?)"
|
peoplesql="INSERT OR REPLACE into actorlinkepisode(idActor, idEpisode, strRole, iOrder) values(?, ?, ?, ?)"
|
||||||
cursor.execute(peoplesql, (actorid,id,Role,None))
|
cursor.execute(peoplesql, (actorid,id,Role,castorder))
|
||||||
|
castorder += 1
|
||||||
|
|
||||||
#### DIRECTORS ######
|
#### DIRECTORS ######
|
||||||
if(person.get("Type") == "Director"):
|
if(person.get("Type") == "Director"):
|
||||||
|
|
Loading…
Reference in a new issue