From dd064f583fb29d8a8babe45c55ad71cf39123699 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Wed, 6 Dec 2017 12:04:32 -0500 Subject: [PATCH] Update kill_trans_exp_audio.py --- killstream/kill_trans_exp_audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/killstream/kill_trans_exp_audio.py b/killstream/kill_trans_exp_audio.py index 3fcddd3..1bf0044 100644 --- a/killstream/kill_trans_exp_audio.py +++ b/killstream/kill_trans_exp_audio.py @@ -43,7 +43,7 @@ def kill_session(): trans_dec = session.trancodeSessions[0].videoDecision if trans_dec == 'transcode': platform = session.players[0].platform - MESSAGE = DEVICES[platform].get('message', DEFAULT_REASON) + MESSAGE = DEVICES.get(platform, DEFAULT_REASON) print(MESSAGE) print('Killing {user}\'s stream for transcoding video on {plat}.'.format(user=user, plat=platform)) session.stop(reason=MESSAGE)