Skip to content

Commit a78126e

Browse files
authored
Handle missing key when PlayQueue passed to playMedia (#692)
* Handle missing key when playqueue passed to playMedia * Simpler but less verbose fix
1 parent f9a09ae commit a78126e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plexapi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def playMedia(self, media, offset=0, **params):
494494
'address': server_url[1].strip('/'),
495495
'port': server_port,
496496
'offset': offset,
497-
'key': media.key,
497+
'key': media.key or playqueue.selectedItem.key,
498498
'token': media._server.createToken(),
499499
'type': mediatype,
500500
'containerKey': '/playQueues/%s?window=100&own=1' % playqueue.playQueueID,

0 commit comments

Comments
 (0)