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
1 changed files with 9 additions and 1 deletions

View File

@ -221,6 +221,14 @@ class WriteKodiMusicDB():
self.AddGenresToMedia(albumid, genres, "album", cursor)
# Update artwork
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