mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
small fixes for musicvideo support
This commit is contained in:
parent
96e50a3d1e
commit
e637af1b78
1 changed files with 5 additions and 3 deletions
|
@ -238,7 +238,7 @@ class WriteKodiDB():
|
||||||
studios = API().getStudios(MBitem)
|
studios = API().getStudios(MBitem)
|
||||||
studio = " / ".join(studios)
|
studio = " / ".join(studios)
|
||||||
director = " / ".join(people.get("Director"))
|
director = " / ".join(people.get("Director"))
|
||||||
artist = MBitem.get("Artist")
|
artist = " / ".join(MBitem.get("Artists"))
|
||||||
album = MBitem.get("Album")
|
album = MBitem.get("Album")
|
||||||
track = MBitem.get("Track")
|
track = MBitem.get("Track")
|
||||||
|
|
||||||
|
@ -901,7 +901,9 @@ class WriteKodiDB():
|
||||||
if mediatype == "tvshow":
|
if mediatype == "tvshow":
|
||||||
sql="INSERT OR REPLACE into genrelinktvshow(idGenre, idShow) values(?, ?)"
|
sql="INSERT OR REPLACE into genrelinktvshow(idGenre, idShow) values(?, ?)"
|
||||||
if mediatype == "episode":
|
if mediatype == "episode":
|
||||||
sql="INSERT OR REPLACE into genrelinkepisode(idGenre, idEpisode) values(?, ?)"
|
return
|
||||||
|
if mediatype == "musicvideo":
|
||||||
|
sql="INSERT OR REPLACE into genrelinkmusicvideo(idGenre, idMVideo) values(?, ?)"
|
||||||
cursor.execute(sql, (idGenre,id))
|
cursor.execute(sql, (idGenre,id))
|
||||||
|
|
||||||
def AddStudiosToMedia(self, id, studios, mediatype, cursor):
|
def AddStudiosToMedia(self, id, studios, mediatype, cursor):
|
||||||
|
|
Loading…
Reference in a new issue