File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -413,16 +413,17 @@ def clients(self):
413
413
return items
414
414
415
415
def client (self , name ):
416
- """ Returns the :class:`~plexapi.client.PlexClient` that matches the specified name.
416
+ """ Returns the :class:`~plexapi.client.PlexClient` that matches the specified name
417
+ or machine identifier.
417
418
418
419
Parameters:
419
- name (str): Name of the client to return.
420
+ name (str): Name or machine identifier of the client to return.
420
421
421
422
Raises:
422
423
:exc:`~plexapi.exceptions.NotFound`: Unknown client name.
423
424
"""
424
425
for client in self .clients ():
425
- if client and client .title == name :
426
+ if client and ( client .title == name or client . machineIdentifier == name ) :
426
427
return client
427
428
428
429
raise NotFound (f'Unknown client name: { name } ' )
You can’t perform that action at this time.
0 commit comments