Fix Companion KeyError for music playback
This commit is contained in:
parent
a6ce6ae8d2
commit
8d1bd52328
1 changed files with 1 additions and 2 deletions
|
@ -241,13 +241,12 @@ class SubscriptionMgr(object):
|
||||||
elif playqueue.plex_transient_token:
|
elif playqueue.plex_transient_token:
|
||||||
answ['token'] = playqueue.plex_transient_token
|
answ['token'] = playqueue.plex_transient_token
|
||||||
# Process audio and subtitle streams
|
# Process audio and subtitle streams
|
||||||
if ptype != v.PLEX_PLAYLIST_TYPE_PHOTO:
|
if ptype == v.PLEX_PLAYLIST_TYPE_VIDEO:
|
||||||
strm_id = self._plex_stream_index(playerid, 'audio')
|
strm_id = self._plex_stream_index(playerid, 'audio')
|
||||||
if strm_id:
|
if strm_id:
|
||||||
answ['audioStreamID'] = strm_id
|
answ['audioStreamID'] = strm_id
|
||||||
else:
|
else:
|
||||||
LOG.error('We could not select a Plex audiostream')
|
LOG.error('We could not select a Plex audiostream')
|
||||||
if ptype == v.PLEX_PLAYLIST_TYPE_VIDEO:
|
|
||||||
strm_id = self._plex_stream_index(playerid, 'video')
|
strm_id = self._plex_stream_index(playerid, 'video')
|
||||||
if strm_id:
|
if strm_id:
|
||||||
answ['videoStreamID'] = strm_id
|
answ['videoStreamID'] = strm_id
|
||||||
|
|
Loading…
Reference in a new issue