mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +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.subscriptionPlan = subscription.attrib.get('plan')
|
||||||
self.subscriptionFeatures = self.listAttrs(subscription, 'id', etag='feature')
|
self.subscriptionFeatures = self.listAttrs(subscription, 'id', etag='feature')
|
||||||
|
|
||||||
roles = data.find('roles')
|
self.roles = self.listAttrs(data, 'id', rtag='roles', etag='role')
|
||||||
self.roles = self.listAttrs(roles, 'id', etag='role')
|
|
||||||
|
|
||||||
entitlements = data.find('entitlements')
|
self.entitlements = self.listAttrs(data, 'id', rtag='entitlements', etag='entitlement')
|
||||||
self.entitlements = self.listAttrs(entitlements, 'id', etag='entitlement')
|
|
||||||
|
|
||||||
# TODO: Fetch missing MyPlexAccount attributes
|
# TODO: Fetch missing MyPlexAccount attributes
|
||||||
self.profile_settings = None
|
self.profile_settings = None
|
||||||
|
|
Loading…
Reference in a new issue