Fix artwork for albums

Boxrear is poster, primary is thumb instead of primary being thumb and
poster and boxrear is poster.
This commit is contained in:
angelblue05 2015-10-22 17:49:38 -05:00
parent d0bf205331
commit 56ef721836

View file

@ -221,8 +221,16 @@ class WriteKodiMusicDB():
self.AddGenresToMedia(albumid, genres, "album", cursor)
# Update artwork
self.textureCache.addArtwork(artworks, albumid, "album", cursor)
if artworks['Primary']:
self.textureCache.addOrUpdateArt(artworks['Primary'], albumid, "album", "thumb", cursor)
artworks['Primary'] = ""
if artworks.get('BoxRear'):
self.textureCache.addOrUpdateArt(artworks['BoxRear'], albumid, "album", "poster", cursor)
artworks['BoxRear'] = ""
self.textureCache.addArtwork(artworks, albumid, "album", cursor)
# Link album to artists
if MBartists:
album_artists = MBitem['AlbumArtists']