Update kill_trans_exp_audio.py
This commit is contained in:
parent
a8550934b6
commit
dd064f583f
@ -43,7 +43,7 @@ def kill_session():
|
|||||||
trans_dec = session.trancodeSessions[0].videoDecision
|
trans_dec = session.trancodeSessions[0].videoDecision
|
||||||
if trans_dec == 'transcode':
|
if trans_dec == 'transcode':
|
||||||
platform = session.players[0].platform
|
platform = session.players[0].platform
|
||||||
MESSAGE = DEVICES[platform].get('message', DEFAULT_REASON)
|
MESSAGE = DEVICES.get(platform, DEFAULT_REASON)
|
||||||
print(MESSAGE)
|
print(MESSAGE)
|
||||||
print('Killing {user}\'s stream for transcoding video on {plat}.'.format(user=user, plat=platform))
|
print('Killing {user}\'s stream for transcoding video on {plat}.'.format(user=user, plat=platform))
|
||||||
session.stop(reason=MESSAGE)
|
session.stop(reason=MESSAGE)
|
||||||
|
Loading…
Reference in New Issue
Block a user