From bb0ba08329f94376b570e2cf43235ffc0cbf0c1e Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 14 Dec 2017 17:19:09 +0100 Subject: [PATCH] Also update volume and mute on PMS updates --- resources/lib/plexbmchelper/subscribers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/plexbmchelper/subscribers.py b/resources/lib/plexbmchelper/subscribers.py index b37ddad6..06eec8c4 100644 --- a/resources/lib/plexbmchelper/subscribers.py +++ b/resources/lib/plexbmchelper/subscribers.py @@ -141,7 +141,11 @@ class SubscriptionMgr(object): return ' \n' % (CONTROLLABLE[ptype], ptype, ptype) playerid = player['playerid'] + # Update our PKC state of how the player actually looks like state.PLAYER_STATES[playerid].update(js.get_player_props(playerid)) + state.PLAYER_STATES[playerid]['volume'] = js.get_volume() + state.PLAYER_STATES[playerid]['muted'] = js.get_muted() + # Get the message together to send to Plex info = state.PLAYER_STATES[playerid] status = 'paused' if info['speed'] == '0' else 'playing' ret = '