mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-24 20:53:09 +00:00
use rtag for roles and entitlements
This commit is contained in:
parent
7678e0cfef
commit
54ce61b006
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue