Modify logging
This commit is contained in:
parent
72de3b6796
commit
47779bbbee
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue