From 48cc6e3471d594dceaf95166530599ad849c09d4 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 4 Mar 2018 14:22:39 +0100 Subject: [PATCH] Fix music artwork not appearing --- resources/lib/PlexAPI.py | 7 +++++++ resources/lib/itemtypes.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 337cad5b..44512ee1 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -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): diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 9e40dd08..c7e77a45 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1319,8 +1319,8 @@ class Music(Items): thumb = "%s" % artworks['poster'] else: thumb = None - if 'fanart1' in artworks: - fanart = "%s" % artworks['fanart1'] + if 'fanart' in artworks: + fanart = "%s" % artworks['fanart'] else: fanart = None