From f141c67ceb81d1846c39660a5074b8655a99498a Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 7 Oct 2020 22:01:01 -0700 Subject: [PATCH] Load key before _details_key for plexapi.audio.Artist --- lib/plexapi/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plexapi/audio.py b/lib/plexapi/audio.py index 05a91307..0f1b0c7f 100644 --- a/lib/plexapi/audio.py +++ b/lib/plexapi/audio.py @@ -130,10 +130,10 @@ class Artist(Audio): def _loadData(self, data): """ Load attribute values from Plex XML response. """ Audio._loadData(self, data) + self.key = self.key.replace('/children', '') # FIX_BUG_50 self._details_key = self.key + self._include self.art = data.attrib.get('art') self.guid = data.attrib.get('guid') - self.key = self.key.replace('/children', '') # FIX_BUG_50 self.locations = self.listAttrs(data, 'path', etag='Location') self.countries = self.findItems(data, media.Country) self.fields = self.findItems(data, media.Field)