From 54ce61b00667832a4db53dccbb7ca4daa1e37e1a Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 14 Jun 2021 00:58:13 -0400 Subject: [PATCH] use rtag for roles and entitlements --- plexapi/myplex.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plexapi/myplex.py b/plexapi/myplex.py index 55227948..fe856f34 100644 --- a/plexapi/myplex.py +++ b/plexapi/myplex.py @@ -135,11 +135,9 @@ class MyPlexAccount(PlexObject): self.subscriptionPlan = subscription.attrib.get('plan') self.subscriptionFeatures = self.listAttrs(subscription, 'id', etag='feature') - roles = data.find('roles') - self.roles = self.listAttrs(roles, 'id', etag='role') + self.roles = self.listAttrs(data, 'id', rtag='roles', etag='role') - entitlements = data.find('entitlements') - self.entitlements = self.listAttrs(entitlements, 'id', etag='entitlement') + self.entitlements = self.listAttrs(data, 'id', rtag='entitlements', etag='entitlement') # TODO: Fetch missing MyPlexAccount attributes self.profile_settings = None