mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix for add people
This commit is contained in:
parent
5496cb0667
commit
ea941ed6b4
1 changed files with 5 additions and 2 deletions
|
@ -895,6 +895,7 @@ class WriteKodiVideoDB():
|
||||||
|
|
||||||
cursor.execute(query, (actorid, name))
|
cursor.execute(query, (actorid, name))
|
||||||
finally:
|
finally:
|
||||||
|
query = ""
|
||||||
# Add person image to art table
|
# Add person image to art table
|
||||||
thumb = API().imageUrl(person['Id'], "Primary", 0, 400, 400)
|
thumb = API().imageUrl(person['Id'], "Primary", 0, 400, 400)
|
||||||
if thumb:
|
if thumb:
|
||||||
|
@ -949,6 +950,7 @@ class WriteKodiVideoDB():
|
||||||
elif "episode" in mediatype:
|
elif "episode" in mediatype:
|
||||||
query = "INSERT OR REPLACE INTO directorlinkepisode(idDirector, idEpisode) values(?, ?)"
|
query = "INSERT OR REPLACE INTO directorlinkepisode(idDirector, idEpisode) values(?, ?)"
|
||||||
|
|
||||||
|
if query:
|
||||||
cursor.execute(query, (actorid, id))
|
cursor.execute(query, (actorid, id))
|
||||||
|
|
||||||
elif type in ("Writing", "Writer"):
|
elif type in ("Writing", "Writer"):
|
||||||
|
@ -958,6 +960,7 @@ class WriteKodiVideoDB():
|
||||||
elif "episode" in mediatype:
|
elif "episode" in mediatype:
|
||||||
query = "INSERT OR REPLACE INTO writerlinkepisode(idWriter, idEpisode) values(?, ?)"
|
query = "INSERT OR REPLACE INTO writerlinkepisode(idWriter, idEpisode) values(?, ?)"
|
||||||
|
|
||||||
|
if query:
|
||||||
cursor. execute(query, (actorid, id))
|
cursor. execute(query, (actorid, id))
|
||||||
|
|
||||||
def AddGenresToMedia(self, id, genres, mediatype, cursor):
|
def AddGenresToMedia(self, id, genres, mediatype, cursor):
|
||||||
|
|
Loading…
Reference in a new issue