Less logging
This commit is contained in:
parent
0d11c6db58
commit
5613d76d95
1 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ def playback_cleanup():
|
||||||
state.OLD_PLAYER_STATES[playerid] = dict(status)
|
state.OLD_PLAYER_STATES[playerid] = dict(status)
|
||||||
# Stop transcoding
|
# Stop transcoding
|
||||||
if status['playmethod'] == 'Transcode':
|
if status['playmethod'] == 'Transcode':
|
||||||
LOG.info('Tell the PMS to stop transcoding')
|
LOG.debug('Tell the PMS to stop transcoding')
|
||||||
DU().downloadUrl(
|
DU().downloadUrl(
|
||||||
'{server}/video/:/transcode/universal/stop',
|
'{server}/video/:/transcode/universal/stop',
|
||||||
parameters={'session': v.PKC_MACHINE_IDENTIFIER})
|
parameters={'session': v.PKC_MACHINE_IDENTIFIER})
|
||||||
|
@ -39,7 +39,7 @@ def playback_cleanup():
|
||||||
status = dict(state.PLAYSTATE)
|
status = dict(state.PLAYSTATE)
|
||||||
# As all playback has halted, reset the players that have been active
|
# As all playback has halted, reset the players that have been active
|
||||||
state.ACTIVE_PLAYERS = []
|
state.ACTIVE_PLAYERS = []
|
||||||
LOG.info('Finished PKC playback cleanup')
|
LOG.debug('Finished PKC playback cleanup')
|
||||||
|
|
||||||
|
|
||||||
class PKC_Player(Player):
|
class PKC_Player(Player):
|
||||||
|
@ -75,12 +75,12 @@ class PKC_Player(Player):
|
||||||
"""
|
"""
|
||||||
Will be called when playback is stopped by the user
|
Will be called when playback is stopped by the user
|
||||||
"""
|
"""
|
||||||
LOG.info("ONPLAYBACK_STOPPED")
|
LOG.debug("ONPLAYBACK_STOPPED")
|
||||||
playback_cleanup()
|
playback_cleanup()
|
||||||
|
|
||||||
def onPlayBackEnded(self):
|
def onPlayBackEnded(self):
|
||||||
"""
|
"""
|
||||||
Will be called when playback ends due to the media file being finished
|
Will be called when playback ends due to the media file being finished
|
||||||
"""
|
"""
|
||||||
LOG.info("ONPLAYBACK_ENDED")
|
LOG.debug("ONPLAYBACK_ENDED")
|
||||||
playback_cleanup()
|
playback_cleanup()
|
||||||
|
|
Loading…
Reference in a new issue