Modify logging

This commit is contained in:
tomkat83 2017-12-15 16:22:03 +01:00
parent 72de3b6796
commit 47779bbbee

View file

@ -84,7 +84,6 @@ class SubscriptionMgr(object):
Returns a timeline xml as str Returns a timeline xml as str
(xml containing video, audio, photo player state) (xml containing video, audio, photo player state)
""" """
LOG.debug('players: %s', players)
msg = v.XML_HEADER msg = v.XML_HEADER
msg += '<MediaContainer size="3" commandID="INSERTCOMMANDID"' msg += '<MediaContainer size="3" commandID="INSERTCOMMANDID"'
msg += ' machineIdentifier="%s">\n' % v.PKC_MACHINE_IDENTIFIER msg += ' machineIdentifier="%s">\n' % v.PKC_MACHINE_IDENTIFIER
@ -148,6 +147,7 @@ class SubscriptionMgr(object):
state.PLAYER_STATES[playerid]['muted'] = js.get_muted() state.PLAYER_STATES[playerid]['muted'] = js.get_muted()
# Get the message together to send to Plex # Get the message together to send to Plex
info = state.PLAYER_STATES[playerid] info = state.PLAYER_STATES[playerid]
LOG.debug('timeline player state: %s', info)
status = 'paused' if info['speed'] == '0' else 'playing' status = 'paused' if info['speed'] == '0' else 'playing'
ret = ' <Timeline state="%s"' % status ret = ' <Timeline state="%s"' % status
ret += ' controllable="%s"' % CONTROLLABLE[ptype] ret += ' controllable="%s"' % CONTROLLABLE[ptype]