Fix music artwork not appearing

This commit is contained in:
croneter 2018-03-04 14:22:39 +01:00
parent 80b810c7e0
commit 48cc6e3471
2 changed files with 9 additions and 2 deletions

View file

@ -773,6 +773,13 @@ class API(object):
art = self._one_artwork('parentThumb')
if art:
artworks['poster'] = art
if self.plex_type() in (v.PLEX_TYPE_SONG,
v.PLEX_TYPE_ALBUM,
v.PLEX_TYPE_ARTIST):
# need to set poster also as thumb
art = self._one_artwork('thumb')
if art:
artworks['thumb'] = art
return artworks
def fanart_artwork(self, artworks):

View file

@ -1319,8 +1319,8 @@ class Music(Items):
thumb = "<thumb>%s</thumb>" % artworks['poster']
else:
thumb = None
if 'fanart1' in artworks:
fanart = "<fanart>%s</fanart>" % artworks['fanart1']
if 'fanart' in artworks:
fanart = "<fanart>%s</fanart>" % artworks['fanart']
else:
fanart = None