Fix music artwork not appearing
This commit is contained in:
parent
80b810c7e0
commit
48cc6e3471
2 changed files with 9 additions and 2 deletions
|
@ -773,6 +773,13 @@ class API(object):
|
||||||
art = self._one_artwork('parentThumb')
|
art = self._one_artwork('parentThumb')
|
||||||
if art:
|
if art:
|
||||||
artworks['poster'] = 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
|
return artworks
|
||||||
|
|
||||||
def fanart_artwork(self, artworks):
|
def fanart_artwork(self, artworks):
|
||||||
|
|
|
@ -1319,8 +1319,8 @@ class Music(Items):
|
||||||
thumb = "<thumb>%s</thumb>" % artworks['poster']
|
thumb = "<thumb>%s</thumb>" % artworks['poster']
|
||||||
else:
|
else:
|
||||||
thumb = None
|
thumb = None
|
||||||
if 'fanart1' in artworks:
|
if 'fanart' in artworks:
|
||||||
fanart = "<fanart>%s</fanart>" % artworks['fanart1']
|
fanart = "<fanart>%s</fanart>" % artworks['fanart']
|
||||||
else:
|
else:
|
||||||
fanart = None
|
fanart = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue