mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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,6 +221,14 @@ class WriteKodiMusicDB():
|
||||||
self.AddGenresToMedia(albumid, genres, "album", cursor)
|
self.AddGenresToMedia(albumid, genres, "album", cursor)
|
||||||
|
|
||||||
# Update artwork
|
# 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)
|
self.textureCache.addArtwork(artworks, albumid, "album", cursor)
|
||||||
|
|
||||||
# Link album to artists
|
# Link album to artists
|
||||||
|
|
Loading…
Reference in a new issue