Fix for add people

This commit is contained in:
angelblue05 2015-09-15 07:48:42 -05:00
parent 5496cb0667
commit ea941ed6b4

View file

@ -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):