From 9bbed82541208c360e0535348e013ddd1f031026 Mon Sep 17 00:00:00 2001 From: daghaian <16483722+daghaian@users.noreply.github.com> Date: Wed, 23 Jan 2019 18:51:37 -0800 Subject: [PATCH] Corrected bug in which a user would still be kicked if viewing 4K video directly but transcoding audio (#22) --- patrol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patrol.py b/patrol.py index 1a4bf09..d013a3a 100755 --- a/patrol.py +++ b/patrol.py @@ -98,7 +98,7 @@ def should_kick_stream(stream): return True, 0, config.KICK_TRANSCODE_MESSAGE if stream.state == 'paused' and config.KICK_PAUSED_TRANSCODES: return True, config.KICK_PAUSED_GRACE_MINS, config.KICK_PAUSED_MESSAGE - if stream.quality == '4K' and config.KICK_4K_TRANSCODE: + if stream.quality == '4K' and config.KICK_4K_TRANSCODE and stream.video_decision == 'transcode': return True, 0, config.KICK_4K_TRANSCODE_MESSAGE else: