Skip to content

Commit

Permalink
Corrected bug in which a user would still be kicked if viewing 4K vid…
Browse files Browse the repository at this point in the history
…eo directly but transcoding audio (#22)
  • Loading branch information
daghaian authored and desimaniac committed Jan 24, 2019
1 parent 29bfa83 commit 9bbed82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9bbed82

Please sign in to comment.