From d5c1bec4c6a3daf0ed9a3d0527ba26e198047c97 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 23 Oct 2015 20:00:34 -0500 Subject: [PATCH 1/2] Add music video artist link --- resources/lib/WriteKodiVideoDB.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index e0bb557b..9e4ce91d 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -407,7 +407,10 @@ class WriteKodiVideoDB(): self.AddTagsToMedia(idMVideo, tags, "musicvideo", cursor) #update or insert actors - self.AddPeopleToMedia(idMVideo,MBitem.get("People"),"musicvideo", connection, cursor) + artists = MBitem['ArtistItems'] + for artist in artists: + artist['Type'] = "Artist" + self.AddPeopleToMedia(idMVideo,artists,"musicvideo", connection, cursor) # Update artwork self.textureCache.addArtwork(API().getAllArtwork(MBitem), idMVideo, "musicvideo", cursor) @@ -919,6 +922,10 @@ class WriteKodiVideoDB(): query = "INSERT OR REPLACE INTO writer_link(actor_id, media_id, media_type) values(?, ?, ?)" cursor.execute(query, (actorid, id, mediatype)) + elif "Artist" in type: + query = "INSERT OR REPLACE INTO actor_link(actor_id, media_id, media_type) values(?, ?, ?)" + cursor.execute(query, (actorid, id, mediatype)) + else: # Kodi Gotham or Helix if "Actor" in type: @@ -958,6 +965,10 @@ class WriteKodiVideoDB(): if query: cursor. execute(query, (actorid, id)) + + elif "Artist" in type: + query = "INSERT OR REPLACE INTO artistlinkmusicvideo(idArtist, idMVideo) values(?, ?)" + cursor.execute(query, (actorid, id)) def AddGenresToMedia(self, id, genres, mediatype, cursor): From 6d3af2665182a61b777aceb9cddcc6573a26bf6a Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 23 Oct 2015 20:32:14 -0500 Subject: [PATCH 2/2] Version bump 1.1.53 --- addon.xml | 2 +- changelog.txt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 49ee7dd1..7955b550 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/changelog.txt b/changelog.txt index 4285f804..d8e5e1fd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +version 1.1.53 +- Add visual warning when kodi version is incompatible +- Add ask to play trailers option +- Fix music singles +- Fix direct path not working during the initial setup +- Fix music videos missing artist link + version 1.1.52 - Report playback for music - Support Emby tags for music videos