Fix directors

This commit is contained in:
angelblue05 2015-11-09 19:59:45 -06:00
parent 8025bc31f9
commit 7dbc1339bb

View file

@ -413,10 +413,12 @@ class WriteKodiVideoDB():
self.AddTagsToMedia(idMVideo, tags, "musicvideo", cursor) self.AddTagsToMedia(idMVideo, tags, "musicvideo", cursor)
#update or insert actors #update or insert actors
people = MBitem['People']
artists = MBitem['ArtistItems'] artists = MBitem['ArtistItems']
for artist in artists: for artist in artists:
artist['Type'] = "Artist" artist['Type'] = "Artist"
self.AddPeopleToMedia(idMVideo,artists,"musicvideo", connection, cursor) people.extend(artists)
self.AddPeopleToMedia(idMVideo,people,"musicvideo", connection, cursor)
# Update artwork # Update artwork
self.textureCache.addArtwork(API().getAllArtwork(MBitem), idMVideo, "musicvideo", cursor) self.textureCache.addArtwork(API().getAllArtwork(MBitem), idMVideo, "musicvideo", cursor)