Closed brannon-breau closed 3 months ago
client(name)
is just a shortcut for clients()
with a loop that searches for the name
.
So you could just do something similar with your own loop.
CLIENT_IDENTIFIER = 'XXXXXXXXXX'
cars = plex.library.section('Movies').get('Cars')
for client in plex.clients():
if client and client.machineIdentifier == CLIENT_IDENTIFIER:
break
else:
raise NotFound(f'Unknown client identifier: {CLIENT_IDENTIFIER}')
client.playMedia(cars)
What is your feature request?
Can we get an update for plex.client so we could use the machine ID instead of name? currently Apple TV doesn't have the device name just "Apple TV" the change would allow someone to use the Machine ID when using the follow type of code.
cars = plex.library.section('Movies').get('Cars') client = plex.client("Michael's iPhone") client.playMedia(cars)
Are there any workarounds?
No response
Code Snippets
No response
Additional Context
No response