We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bb93f commit b296cc4Copy full SHA for b296cc4
plexapi/media.py
@@ -657,3 +657,21 @@ def _loadData(self, data):
657
self.name = data.attrib.get('name')
658
self.score = data.attrib.get('score')
659
self.year = data.attrib.get('year')
660
+
661
662
+@utils.registerPlexObject
663
+class Agent(PlexObject):
664
+ """ Represents a single Agent.
665
666
+ Attributes:
667
+ TAG (str): 'Agent'
668
+ """
669
+ TAG = 'Agent'
670
671
+ def _loadData(self, data):
672
+ self._data = data
673
+ self._initpath = '/system/agents'
674
+ self.hasAttribution = data.attrib.get('hasAttribution')
675
+ self.hasPrefs = data.attrib.get('hasPrefs')
676
+ self.identifier = data.attrib.get('identifier')
677
+ self.primary = data.attrib.get('primary')
0 commit comments