Load key before _details_key for plexapi.audio.Artist

This commit is contained in:
JonnyWong16 2020-10-07 22:01:01 -07:00
parent e4372644e1
commit f141c67ceb
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -130,10 +130,10 @@ class Artist(Audio):
def _loadData(self, data): def _loadData(self, data):
""" Load attribute values from Plex XML response. """ """ Load attribute values from Plex XML response. """
Audio._loadData(self, data) Audio._loadData(self, data)
self.key = self.key.replace('/children', '') # FIX_BUG_50
self._details_key = self.key + self._include self._details_key = self.key + self._include
self.art = data.attrib.get('art') self.art = data.attrib.get('art')
self.guid = data.attrib.get('guid') self.guid = data.attrib.get('guid')
self.key = self.key.replace('/children', '') # FIX_BUG_50
self.locations = self.listAttrs(data, 'path', etag='Location') self.locations = self.listAttrs(data, 'path', etag='Location')
self.countries = self.findItems(data, media.Country) self.countries = self.findItems(data, media.Country)
self.fields = self.findItems(data, media.Field) self.fields = self.findItems(data, media.Field)