From 8d1bd5232897f28273507aa8070885b98d5230cb Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 3 Feb 2018 16:49:58 +0100 Subject: [PATCH] Fix Companion KeyError for music playback --- resources/lib/plexbmchelper/subscribers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/plexbmchelper/subscribers.py b/resources/lib/plexbmchelper/subscribers.py index 3ba4ebed..c09b76a0 100644 --- a/resources/lib/plexbmchelper/subscribers.py +++ b/resources/lib/plexbmchelper/subscribers.py @@ -241,13 +241,12 @@ class SubscriptionMgr(object): elif playqueue.plex_transient_token: answ['token'] = playqueue.plex_transient_token # 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') if strm_id: answ['audioStreamID'] = strm_id else: LOG.error('We could not select a Plex audiostream') - if ptype == v.PLEX_PLAYLIST_TYPE_VIDEO: strm_id = self._plex_stream_index(playerid, 'video') if strm_id: answ['videoStreamID'] = strm_id