Update kill_trans_exp_audio.py

This commit is contained in:
blacktwin 2017-12-06 12:04:32 -05:00 committed by GitHub
parent a8550934b6
commit dd064f583f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)