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 c061986 commit 2ab3b61Copy full SHA for 2ab3b61
plexapi/server.py
@@ -184,9 +184,11 @@ def account(self):
184
data = self.query(Account.key)
185
return Account(self, data)
186
187
- def agents(self):
+ def agents(self, mediaType=None):
188
""" Returns the `:class:`~plexapi.media.Agent` objects this server has available. """
189
key = '/system/agents'
190
+ if mediaType:
191
+ key += '?mediaType=%s' % mediaType
192
return self.fetchItems(key)
193
194
def createToken(self, type='delegation', scope='all'):
0 commit comments