add shortIdentifier attribute to Agent

This commit is contained in:
blacktwin 2020-03-10 16:17:24 -04:00
parent 3418acf317
commit 96cb0eb70a

View file

@ -674,4 +674,5 @@ class Agent(PlexObject):
self.hasAttribution = data.attrib.get('hasAttribution') self.hasAttribution = data.attrib.get('hasAttribution')
self.hasPrefs = data.attrib.get('hasPrefs') self.hasPrefs = data.attrib.get('hasPrefs')
self.identifier = data.attrib.get('identifier') self.identifier = data.attrib.get('identifier')
self.primary = data.attrib.get('primary') self.primary = data.attrib.get('primary')
self.shortIdentifier = self.identifier.rsplit('.', 1)[1]