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:
parent
d0bf205331
commit
56ef721836
1 changed files with 9 additions and 1 deletions
|
@ -221,8 +221,16 @@ class WriteKodiMusicDB():
|
||||||
self.AddGenresToMedia(albumid, genres, "album", cursor)
|
self.AddGenresToMedia(albumid, genres, "album", cursor)
|
||||||
|
|
||||||
# Update artwork
|
# 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
|
# Link album to artists
|
||||||
if MBartists:
|
if MBartists:
|
||||||
album_artists = MBitem['AlbumArtists']
|
album_artists = MBitem['AlbumArtists']
|
||||||
|
|
Loading…
Reference in a new issue