use rtag for roles and entitlements

This commit is contained in:
blacktwin 2021-06-14 00:58:13 -04:00
parent 7678e0cfef
commit 54ce61b006

View file

@ -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