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

@ -675,3 +675,4 @@ class Agent(PlexObject):
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]